CSS is Evil, a cordial rant about...

User 228323 Photo


Registered User
5 posts

I am proficient in CSS, so it isn't a matter of being confused by it, but I have long thought it fairly ridiculous, at least the positioning aspects, which can work so very differently from one browser to another.

First, its proponents go on, at some length, about the need to separate formatting from content. Except that in common usage, commercial and recreational publications, in fact, in just about everything but the most strictly constructed scientific or mathematical publications, formatting is part of the content.

When you are reading instructions for a medication, for instance, it is not incidental nor trivial that a paragraph is printed in bold, red letters, that formatting is communicating something vital to you.

Second, in the old, table-based days of formatting, I could teach HTML to almost anyone on a quiet afternoon. Now there is a cottage industry for classes, thick books and online instruction to produce exactly the same results, only with far greater effort.

On the matter of Accessibility, I understand and take responsibility for making websites accessible, that are easily read by screen reader software, for instance. And here the CSS proponents will proclaim that Cascading Style Sheets make sites much more accessible. Maybe. I think though, that it would have been much easier to teach people to assemble their tables, and for software makers to construct their programs in ways to make sites easily accessible.

Yes, I know that CSS is now the standard, and that we are stuck with it. I know that is does some cool tricks like making it easy for one site to be viewed in several styles, (a trick that is impressive the first time, but gets old quickly.) I know that to appear truly conversant with web site development, one must use CSS to position elements, however randomly in various browsers, and avoid tables like nettles in a nudist colony, but still, I remember a time when is was all so much more straightforward and much simpler.

Here endeth the rant.

;)
Orator Pro Angelus Populus
User 38401 Photo


Senior Advisor
10,951 posts

Personally I think that positioning elements with CSS is very daunting compared to Tables. I still use tables when needed simply because of that. Granted I do style the tables with CSS though. Having to setup a separate CSS class/id/etc. for each image or table cell type area is crazy to me. CSS could take some lessons from the ease of setting up a table lol.

I love CSS mind you, but some things are just.... too much work :P
User 122279 Photo


Senior Advisor
14,637 posts
Online Now

My thoughts were like those of Fred when I started out with css. But they have changed. Admittedly, layout tables was the last thing I got rid of. Floating divs help me create the layout as I want it, and now I only use tables for displaying tabular data.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

On some level it feels like css is being blamed for browsers not implementing the standard correctly, or in a timely manor.

That being said, there seems to be little ability in general to gain flexibility without gaining complexity.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 244141 Photo


Ambassador
1,209 posts

The positive thing that comes from CSS is job security. :P
Web Design: https://www.websnoogie.com
Member - BBB: Websnoogie, LLC






User 471275 Photo


Ambassador
1,130 posts

Gone are the days I used to use tables. Since working with html5 on all of my new websites I only use css as I feel I can do much more design wise with css.:)
I love css3 but due to lack of browser compatibility and clients wanting the website to look the same across browsers I can't use css3 it yet.:/

User 228323 Photo


Registered User
5 posts

James T. Kirk wrote:
The positive thing that comes from CSS is job security. :P


A Philosopher!


CSS really does have a lot to recommend it. I just wish that where positioning was concerned, it was more like desktop publishing software, and less like a Jello mold in an earthquake during a heat wave.

For my next trick, I excoriate those nefarious people who committed foul character assassination on the sublime invention, frames.
Orator Pro Angelus Populus

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.