Kerry Buckley What’s the simplest thing that could possibly go wrong?

18 June 2007

Multiple class attributes in HTML

Filed under: Software — Kerry Buckley @ 9:09 pm

Here’s a great tip courtesy of Trenton Moss’s Ten CSS tricks you may not know. I certainly didn’t know it, but it’s quite possible everyone else does and this post is going to make me look like an idiot. I can take it.

How many times have you ended up doing something like this?


...



Did you know that you can specify multiple classes on one element, just by separating them with spaces?


...



[tags]html,css,class[/tags]

1 Comment »

  1. Microformats use this “trick” quite a bit.

    Comment by Paul Downey — 20 June 2007 @ 5:04 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress