dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: position question

  1. #1
    Join Date
    Jan 2006
    Posts
    8

    position question

    Hello,

    I have to posion a DIV at the bottom of the html page. (Servers are running IIS and I need to put common code onto thousands of them. I figured using the IIS Footer Method would work, but I would like the content to be placed at the top of the page.

    Is there a way to position the DIV at the top of the page so that anything else is "pushed" down (no overlap)? Or is there a better way to force this "top bar" onto thousands of pages at the server level?


    Altneratively, is there a way I can force the div to be at the very bottom of the window (not just the bottom of the code) to emulate a bottom frame?

    Thanks!
    Last edited by afail; 01-03-2006 at 03:20 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Sonora, California
    Posts
    34
    I'm having a really hard time trying to understand what you mean. Can you try to explain exactly what you want? Maybe provide some examples.

  3. #3
    Join Date
    Jan 2006
    Posts
    8
    Ok, try this code out

    <body>
    TOP Text<br>
    Middle Text<br>
    Bottom Text<br>
    <div>
    </body>

    I need the div to appear at the top of the page, but I need to append the actual code as a footer on each page (using IIS). IIS does not allow you to place a header of every page. If there is another way to append this header onto every page without manual editing, I can use that.

    If it is not possible to place the code at the top of the pages, I can put it at the bottom. But if it is on the bottom, is there anyway to ensure that it is positions at the bottom of the users screen?

  4. #4
    Join Date
    May 2004
    Location
    dobson ave.
    Posts
    694
    Hi -
    Sound like you could use css - and give the divisions
    unique identifiers to utilize it. [Here, I used a class=
    instead of id= since you'll have many pages w/ the same...]
    HTML Code:
    <body>
    <div class="contain">
      <div class="top">
      <p>
      </p>
      </div>
        <div class="center">
        <p>
        </p>
        </div>
          <div class="bottom">
          <p>
          </p>
          </div>
    </div>
    I don't know how to use IIS, but can you just call the tag
    div class="top" as the one to take the data?

    You'd set the container div for the width you want -
    can set height, too as long as the content won't overflow it.
    That means you could then set widths and heights for
    the divs inside of it - and remember that margins will keep
    elements next to each other vt. [margin:0 auto; if centered]
    or add space between them.

    Good luck,
    El

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles