PDA

View Full Version : aligning to bottom


ofer_z
01-13-2003, 12:49 PM
hi all,

i'm looking for a way to align some text to the bottom of the screen (a footer.) if the text above it is longer than the screen height, i want the footer right after that text, but if that text doesn't fill the screen, i want it align to the bottom of the screen.
anyone has any idea how to achive this with XHTML 1.0 and CSS?

TIA,
o

Geforc3
01-13-2003, 01:03 PM
Do you have a link to the problem page?? that can help a little bit better dan explaning the problem!!

ofer_z
01-13-2003, 01:22 PM
sure, sorry about that...

http://www.tdp.nu/ofer/test/english/contact.html

i want to align the footer to the bottom of the window.
i used to do this with <table height="100%"> and it seems to work with IE and NS, but it's not valid HTML...


thanks for any help,
o

DCElliott
01-13-2003, 04:51 PM
Take a look at my site (accessible through the [website] button above this message) and the ghanga|iris|orchid templates. They all have a footer at the bottom which remains in place regardless of how you resize the page. The trick is to use %age divs vertically. Hopefully this will give you some ideas.

MikeParent
01-14-2003, 04:12 AM
Hmmm, DC I think we may be geographically close based on the address of that site ... I live and work in Halifax :)

DCElliott
01-14-2003, 04:19 AM
Yep.

But neither of us seems to be in the phonebook. :cool:

DE

MikeParent
01-14-2003, 05:39 AM
Ya, well ya never what freak from the Internet might try to call you ;-)

ofer_z
01-14-2003, 02:29 PM
hi,

thaks for the reply.

i was wondering, is there a way to make only the title area and the footer a fixed height and have the content area fill the rest of the screen or do i have to use % height for all the parts?

thanks again,
o