css "div" bottom of window or bottom of content.

Discussion in 'HTML' started by Dan, Oct 6, 2003.

  1. Dan

    Dan Guest

    http://dan.micamedia.com/dan/

    check this out in 1024x768..

    here is what i want to have happen (under any resolution.. trying to make
    this a fluid site)...

    the bottom nav bar.. (all contained within a div).. should be either at the
    bottom of the browser window, or at the bottom of the content, which ever is
    lower..

    meaning.. say i don't put any content in. just one line of content.. that
    nav bar should be at the bottom of the page. But say i put a ton of content
    in.. the bottom nav bar should be at the bottom of the content...

    how do i do this.. it seems i can get it to do one or the other.. but now
    both..

    I can do the following to get it always at the bottom:
    bottom: 0px

    but if i have a lot of content, the content will go under that, and end up
    being UNDER the nav.


    I can just give it no position, and the div is place in normal position
    after the content. But if there is not much content, i'll end up with the
    nav bar in the middle of the page!!

    I used to be able to do the same thing with tables like this:

    <Table height="100%">
    <tr><td height="1%"><!-- top nav here --></td></tr>
    <tr><td height="99%"><!-- content here --></td></tr>
    <tr><td height="1%"><!-- bottom nav here--></td></tr>
    </table>

    HOw do i get the same in positions 3 divs on a page? Do i need to create a
    4th div to contain these 3 divs?

    Dan Foley
    Principal Partner - Director of Information Technology
    ____________________________________________________________
    Mica Media - Web Design/Development - Print - CD-ROM - Audio/Video
    www.micamedia.com
     
    Dan, Oct 6, 2003
    #1
    1. Advertising

  2. Dan

    ainigma

    Joined:
    Apr 4, 2008
    Messages:
    1
    Does nobody have an answer for this? This seems like a basic task or css requirement but I haven't been able to find any kind of solution for this problem. Hours if not days have been spent searching.
     
    ainigma, Apr 4, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew
    Replies:
    1
    Views:
    3,606
    Travis Newbury
    Jan 12, 2005
  2. Rafael Cotta
    Replies:
    1
    Views:
    15,617
    Lawrence
    Apr 29, 2005
  3. Noozer
    Replies:
    1
    Views:
    7,227
    Carolyn Marenger
    Mar 13, 2006
  4. Chris
    Replies:
    2
    Views:
    11,730
    Bergamot
    Sep 28, 2006
  5. Royan
    Replies:
    4
    Views:
    175
Loading...

Share This Page