Geeks With Blogs
Practical .NET

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.

Posted on Monday, July 31, 2006 8:07 PM Else... | Back to top

Comments on this post: CSS isn't all it's cracked up to be.

# re: CSS isn't all it's cracked up to be.
Requesting 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
Left by Don Demsak on Jul 31, 2006 7:08 PM

# re: CSS isn't all it's cracked up to be.
Requesting 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.
Left by KL on Oct 18, 2006 5:20 AM

Your comment:
 (will show your gravatar)

Copyright © Kyle | Powered by: