It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Expandable rows

Expandable rows

Postby thehen on Wed Apr 18, 2007 12:30 pm

Hello one and all.

I have a table split into three rows. I want the top and the bottom rows to expand equally as the page is resized, but for the center one to remain a fixed size.

Is this possible?
o:<> thehen

Image

Indie Games
User avatar
thehen
250+ Club
 
Posts: 453
Joined: Tue Sep 26, 2006 11:36 am
Location: UK

Postby mwa103 on Wed Apr 18, 2007 1:15 pm

Have you tried
Code: Select all
<table height=100%>
<tr><td height=50%>Blah Blah Blah</td></tr>
<tr><td height=200px>Blahdy blah blah blah</td></tr>
<tr><td height=50%>Blah blah blah</td></tr>
</table>


It seems to work in IE & FF, but I think I remember something about an issue using percentages for height in Safari. Not sure if this will validate on w3c or not, but I know if you use strict doctype it won't work. Not sure why you are using tables, but is it possible to use divs instead? That might be a little easier to implement. Hope this helps.

-Mike
mwa103
100+ Club
 
Posts: 206
Joined: Mon Mar 07, 2005 10:55 pm


Who is online

Users browsing this forum: No registered users and 4 guests