postCSS Skillz - Design - 20th September

A while ago at work my colleague Alex discovered something in CSS that none of us knew.

When assigning a class to a div like so:

<div class="blah">...</div>

You can choose more than one class:

<div class="blah anotherclass andanotherclass">...</div>

This is incredibly helpful at times. I even used it in the re-design of the site here. The rollover images down at the bottom use this technique. There is a generic class that does the rollover background image changes and then more specific classes so that the image to use can be specified. Neato stuff.


Warning: Invalid argument supplied for foreach() in /usr/local/vhosts/ollyjackson.co.uk/wordpress_svn/trunk/wp-content/themes/cyber-junky/theloop.php on line 23
 

Add a new comment

  • You can use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
  • Comments are gravatar enabled.