With the recent discussion of CSS style rules and quirks, I thought I’d mention one of my favorite CSS features that I’ve been making a lot of use of recently: multiple class selectors.
This is one CSS2 addition that isn’t mentioned much in CSS books (at least that I’ve seen), although most recent browsers do support it - all the “good” ones and IE, too. :)
According to the specification , you can apply multiple class attributes to any element, separated by spaces, such as:
Test , which is useful, because then you can have separate rule definitions for title and special which you can share with any other elements on the page. If you think about it, this can serve to dramatically reduce duplication in your style sheets.
In addition, you can specify rules that only apply to elements where both classes are specified, for further control & flexibility.
So, for example, here is some code that demonstrates this:
[HT...
Content suppressed by ://URLFAN, for full article visit source
Once in a blue moonFrom: freepressblog.org
Post Date: 2006-05-10 12:29:40
In a rare non-technical, non-political post, I thought I’d let you know that my iron was not working today. Actually, it hasn’t been working for a couple days now, but I’ve just been getting by with wearing shirts and pants that don’t necessarily need to be ironed before you wear them, but the situation was exacerbated today, because I was down to having only clean clothes remaining that require ironing. So, I’m wearing a wrinkly shirt today.
PS - Don’t ev...
more So far, so goodFrom: freepressblog.org
Post Date: 2006-05-10 12:15:00
Four spam-free days and counting, since I implemented my new spam prevention system . This is pretty good, especially since Google just recently started indexing my site again (long story, for another time) and that has led to a lot more page views, as well as seemingly more incoming spam attempts.
...
more Dear MS: Thanks for all the bugsFrom: freepressblog.org
Post Date: 2006-05-10 12:11:31
I was just thinking about this brief exchange over on Dan’s blog , as well as some recent stuff I’ve been dealing with at work, and realizing that the endless stream of Internet Explorer security vulnerabilities is actually a tremendous blessing to us web developers.
Here’s why: While IE6’s implementation of web standards is still woefully inadequate, it’s certainly miles ahead of their 5.x versions, and I don’t even want to talk about any versions before...
more