CSS isn't all it's cracked up to be.

I know I'm likely going to be touching some nerves here, but CSS isn't all it's cracked up to be.  Yep.  ZenGarden is great, and shows you all that you can do with CSS, but it conveniently leaves out a common problem.  DIV heights with dynamic content.  Sure, it's great if you can specify that your div will always be 427 pixels tall, but there is no way you can guarantee that with dynamic content.

The DIV tag does not support the height:100% style when inside a container.  In fact, I don't think it supports height:100% period.  So, extra manipulation with Javascript is necessary to get your CSS layout to look right. 

As it stands right now, I'll stick with tables, until this is fixed.  Don't get me wrong, I like CSS.  It's extremely flexible, and I'm working on re-writing a few sites in it now.  But, is it the revolutionary solution to all the world's problems like some have claimed?  Nope.

Fix this issue, and I'll start to think otherwise.

Print | posted on Monday, July 31, 2006 8:07 PM

Feedback

# re: CSS isn't all it's cracked up to be.

left by Don Demsak at 7/31/2006 7:08 PM Gravatar
You just have to think outside the box when working with CSS. It isn't meant to be pixel perfect (meaning you explicitly tell the rendering agent exactly how to draw objects).

Don't try to learn WPF if you can't handle CSS, as the

# re: CSS isn't all it's cracked up to be.

left by KL at 10/18/2006 5:20 AM Gravatar
I agree, what was actually so wrong with tables to begin with ? Other than the religious debate that tables is for tabular data and divs for everything else tables do have advantages that a div/css layout doesn't have.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 2 and 7 and type the answer here: