CSS Clueless
Steven Den Beste has lately been wrestling with both CSS (Cascading Stylesheets) and a new version of City Desk (his blogging software) that helpfully rewrites your HTML for you - and indeed, can't be prevented from doing so.
Being an engineer, he discusses City Desk in the context of intrusive tools. An intrusive tool is one that you are constantly aware of using. Notepad, for example, is not an intrusive tool; it sits there and you type stuff into it. Word is very much an intrusive tool, with its pop-up advice and its real-time spelling-error-generator and its fourth-grade reading-level grammarbot. I hate Word; I use Lotus WordPro for any serious writing (my book, for example) because it's not intrusive; despite having just as many bells and whistles as Word, it does exactly what you tell it to and shuts up otherwise. I find CSS to be an intrusive tool too, not because it beeps and squawks at you (it can't), but because as soon as you try to do anything complicated, it stops working the way it should. Setting up the three-column layout was a huge pain with Internet Explorer; I tried three different ways of doing it - all of which worked fine in Mozilla - before stumbling across something that IE accepted. I don't know if the fault is with the specification or Mozilla or IE, but CSS is clearly not ready for use when it takes trial and error, and in the end, arcane trickery, to make something that really is fairly simple, work. And I ended up with two different stylesheets anyway, and JavaScript code to select the (hopefully) right one based on what browser you are using. (Try looking at the site in both Mozilla and IE - the IE stylesheet is different because I can't be bothered keeping both versions up to date.) For the new layout I'm considering using tables instead. HTML purists will tell you that using tables for layout is a heinous crime, but I say to the purists: Go piss up a rope.* Tables do what you tell them to, where CSS does whatever the hell it feels like. I get enough of that from people; I don't feel like dealing with it in software as well. * Where does this expression come from, anyway?**** Never mind, I googled.***
*** Okay, okay: GO PISS UP A ROPE by 1940s: Go away and do something characteristically stupid; ="get lost", "go fly a kite". "He asked for another contribution and I told him to go piss up a rope." (Chapmanās Dictionary of American Slang)****
**** I also found an ad for "Urine Porn". Some days you're torn between "To each his own" and "Ewwww".*****
***** I'm finished now, Tiger, you can have them back.
Posted by: Pixy Misa at 12:28 AM
Comments
Posted by: Chris C. at September 03, 2003 11:17 PM (do/71)
Posted by: Pixy Misa at September 03, 2003 11:36 PM (jtW2s)
Posted by: Chris C. at September 04, 2003 01:48 AM (do/71)
Posted by: Chris C. at September 04, 2003 01:58 AM (do/71)
I don't particularly like the CSS spec (actually, I think CSS is horrid), but I think you're right that that is not where the main problem lies.
But if 90% of your audience uses non-ANSI-compliant C compilers that break on your code, ANSI C is not ready for use. Ready for implementation, yes, but not for use. And that's where we are with CSS right now. Happy day if I could get everyone in the world to switch to Mozilla...
Posted by: Pixy Misa at September 04, 2003 02:30 AM (jtW2s)
That said, why don't you like CSS. I'm by no means well versed, but what I've seen of the theory (divorcing formatting from content) and some of the demos for Mozilla, it seems useful.
Posted by: Chris C. at September 04, 2003 02:38 AM (do/71)
Probably "horrid" was too strong... I still have scars from my battle with IE a couple of months back. That and the spec, which is less detailed than it could be when you get into the more advanced layout functions - which made it hard to tell whether my stylesheet was at fault or IE's implementation.
I don't particularly like the actual CSS language at the moment, but I'll probably get used to it...
Posted by: Pixy Misa at September 04, 2003 02:47 AM (jtW2s)
Posted by: Rossz at September 05, 2003 11:17 AM (43SjN)
Posted by: Pixy Misa at September 05, 2003 12:52 PM (LBXBY)
Posted by: Tony at September 07, 2003 07:50 AM (CUi1V)
Processing 0.01, elapsed 0.0064 seconds.
18 queries taking 0.004 seconds, 18 records returned.
Page size 10 kb.
Powered by Minx 0.8 beta.