CSS & Web Design Forum  

Welcome to the CSS & Web Design Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
WM Media Banner

Supporters
Pos Software - POS hardware and Software to track, control and manage your inventory.
Web Templates - BoxedArt is the most reliable source for unlimited template downloads.

Directory Submission
WL Marketing - Your #1 source for building links

Go Back   CSS & Web Design Forum > Web Design > CSS
Reply
 
Thread Tools Search this Thread Display Modes
(#1)
Old
Jeff Bender
Guest
 
Default table with height:100% doesn't take up all of parent's height? - 07-05-2007, 07:35 PM

http://people.virginia.edu/~kjl3d/testHeight.html

Why doesn't the table with id shouldBeTall have a height that is the
same as it's enclosing td? Firebug tells me that the table's height
is 25 pixels and the enclosing td's height is 300px. Do I need to
specify something different than "style=height: 100%;" ?

Reply With Quote
(#2)
Old
Ben C
Guest
 
Default Re: table with height:100% doesn't take up all of parent's height? - 07-05-2007, 09:55 PM

On 2007-07-05, Jeff Bender wrote:
> http://people.virginia.edu/~kjl3d/testHeight.html
>
> Why doesn't the table with id shouldBeTall have a height that is the
> same as it's enclosing td? Firebug tells me that the table's height
> is 25 pixels and the enclosing td's height is 300px. Do I need to
> specify something different than "style=height: 100%;" ?


You've set a percentage height of an auto-height container which the
spec tells browsers to ignore.

Although in this case you'd think it wouldn't be so hard to see what you
mean, in general the height of a container with auto height often
depends on its contents. So to ask for the contents to be some
percentage of the container is a bit circular and non-sensical.

If you set the
that actually contains the to height: 300px
the 100% should work.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Hosting at Triple.com
vBulletin Skin developed by: vBStyles.com

Printing Company  Link Building Services