PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Nov 23, 2014 8:06 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Feb 02, 2007 5:54 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6259
Location: Winnipeg
I have a requirement to display a header a body and a footer. The footer and header are of fixed size but the body may change...

Currently I have something like this in tables:

<table width="100%" height="100%">
<tr><td>Header</td></tr>
<tr><td width="100%" height="100%">Body</td></tr>
<tr><td>Footer</td></tr>
</table>

If memory serves me correctly XHTML TRANS doesn't support TD height 100% nor does TABLE - so how would I make this work, other than maybe switching doctypes to html transitional?

Is this effect possible using CSS and DIV's only? Remember the footer needs to remain aligned with the bottom and only get pushed "down" when there is more BODY than can visibly be displayed???

It's important it's all wrapped in a container DIV or TABLE as well incase the footer is wider than the header I need all three rows to always share the same width...

Ideas? Demo code?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 6:00 pm 
Offline
DevNet Resident

Joined: Thu Mar 10, 2005 6:27 pm
Posts: 1027
Location: Southern Ontario
:arrow: http://www.themaninblue.com/experiment/footerStickAlt/ :?:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 9:54 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6259
Location: Winnipeg
Cool looks interesting :)

Thanks :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group