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

D

Dan

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
 
Joined
Apr 4, 2008
Messages
1
Reaction score
0
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top