View Full Version : possible to align a table to bottom of browser window?
Showing
02-23-2003, 06:30 PM
I was wondering if anyone knows of a way to have a table always hug the bottom of a browser window (without using framesets).
Valign (as a table attribute) sets the vertical alignment of the contents of that table, not the table itself...
Thank you much,
Showing
scroots
02-23-2003, 06:40 PM
you could place it in a static div which is postioned using javascript continously.
if this is a possiblity visit javascriptkit.com and look for a static combox box.
scroots
The content of a table can be another table... :D
mouse
02-25-2003, 12:48 AM
<div style="position: absolute; bottom: 0px">
<table>
...
</table>
</div>Bit like that I suspect. :eek:
cg9com
02-25-2003, 04:28 AM
:(
IE6(at least) will leave one pixel of space under anything bottom positioned.
http://www.codingforums.com/showthread.php?s=&threadid=14272
mouse
02-25-2003, 04:33 PM
bottom: -1px ?
Showing
02-25-2003, 07:13 PM
Thank you all for your responses. It's not the exact effect that I was looking for. [should've been more descriptive]. The table table I am talking about is a footer, and I want it always at the bottom *if* user has scrolled down to the bottom in a page with lots of content, or *at the bottom of browser window if short amount of content.
I'm guessing it's not possible to do both of these (easily), so I am going to have to forgo this approach.
Thanks again!
-Showing
Borgtex
02-25-2003, 07:30 PM
as meow suggested, put the table inside a cell of another table of height=100%
Showing
02-25-2003, 09:11 PM
aaah grasshopper, <table height="100%"> is the key....
I usually leave off that attribute, b/c doesn't usually work well.
I'm actually leaving the footer as it's own table below, and having the body content table=100% seems to be working well.
Thanks a bunch!
-Showing
cg9com
02-25-2003, 09:11 PM
Originally posted by mouse
bottom: -1px ?
mouse! :D :D :D :D
that works, but it still doesnt solve the problem that IE is not supposed to have a gap in the first place! :(
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.