View Single Post
Old Oct 25th, 2007, 7:32 PM   #32
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 102
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
Re: Why is CSS such a mess?

Quote:
Originally Posted by Dameon View Post
Quite the opposite. My point is that CSS makes doing so near impossible.
CSS is one of those things that takes practice and there is some weird behavior when you're not careful with mixing elements, but overall it's a fine language and I prefer it over embedded styles because it allows for code reuse and it is simpler to apply properties to multiple elements instead of copying and pasting every single attribute.

Quote:
Originally Posted by Dameon View Post
When you add a div tag for the sole purpose of aesthetics, one which is otherwise unrelated to the content, CSS has failed.
Care to explain how? Makes sense to me to offset data which is going to have a different style applied to it than the rest of the page. Separating design from content is an important concept but don't take it so literally that you believe the sole purpose of HTML documents is to organize pure data. They aren't. The whole purpose is so that you can put content in logical blocks or sections so that styles can be more easily edited and applied without retyping all the code. HTML documents are not organizing the data by it's content value, but by the logical sections in which styles are applied.

Quote:
Originally Posted by Dameon View Post
The same goes for reordering elements so things float around correctly or are otherwise easier to arrange. We are both well aware that this is often the case.
Isn't that a good thing? HTML documents are read top-bottom, left-right and trying to create a document any other way is stupid because it makes it harder to read and requires nasty CSS.

Quote:
Originally Posted by MiKuS View Post
there are lots of ways to gracefully degrade a site; for example the XHTML should always be available.
Ever try using XHTML with IE? It degrades in the sense that the browser will render it, but if you try to send it as an XML document instead of text/html, IE will have a freaking heart attack, cut its wrist, and bleed like a hemophiliac. Even Gecko's support isn't complete yet. I always use HTML Strict for my documents.
Darkhack is offline   Reply With Quote