nasty nasty nasty classnames. Why nasty? Too many of them, and they have no meaning (yes, I read the blog by John-whoever who explained that when these classes are for arbitrary page positions, there often aren’t any decent names the template-writer could possibly think up). I would not want any code of mine to look like this:
Blueprint:
<div class=“span-11 prepend-2 feature-home-text”>
960 (seems to be coupled with wordpress so it’s even worse):
<body class=“wordpress y2010 m01 d28 h04 home page pageid-18 page-author-matt page-template page-template-home-php”>
<div class=“container_12”>
<div class=“grid_7 prefix_1”>
<div class=“grid_2 alpha”>
YUI:
<div class=“yui-t5”>
<div id=“yui-main”>
<div class=“yui-b”>
(I’m also religiously against Yahoo’s reset, it’s a lot like Meyers’)
Yaml:
<div class=“subcolumns”> <– this one’s great, I know what it is!
<div class=“c50l”>
<div class=“subcl”>
Drupal (isnt using a grid yet, though they intend to include at least one gridded template in D7):
<div id=“block-comment-0” class=“clear-block block block-comment”>
(I’ve seen worse with at least 7 different iterations of the words “block” “clear” and “comment” in it. And people complain Perl is write-only : )
I’m not saying these aren’t time-savers (they obviously are esp for people who either can’t code CSS easily or, as the 960 guys put it, when one needs to spit out a bunch of similar sites in a very short time). As Stubbornella says:
I’m just saying there’s no way in hell I’d allow butt-ugly code like that in my HTML just to save time. But I have the freedom to say stuff like this: I’m a hand-coder and don’t have to kowtow (currently) to any templating systems making my life harder.
The original point of CSS was to make individual HTML pages lighter and I think grids move back to the ages of align=“center” in some respects.
I am aware of one person who found the extra, unreadable class names such a problem that they modified one of the popular grids so as not to add those classes… I ran into it while looking at “oocss” once, but dunno where it is now.
I guess instead of telling someone “just use a framework” I’d tell someone to look long and hard and decide if they are willing to go into the dark ages of divitis and classitis just for easier CSS. Sometimes it may well be totally worth it, and other times, just another way for the maintainers who come after you to lose a lot of hair. I certainly never liked the idea of 5 wrapping divs just for what may be a single line of actual content.