If your like me, you will not have read a CSS book. To me, CSS is a skill you learn by example and practise. OK, I’ve read a few tutorials here and there, been amazed at how a bullet menu can be turned into a multi-level drop down, etc. etc.

So the other day I was looking at some CSS code that my fellow fish Stu had written and I noticed he had used (something similar to) the following mark-up:

<div class="red left">Hello World</div>

My first thought was “what’s he done now?” then I thought “hang on a minute, Stu’s the man. There must be a reason for this…” I then found that his CSS contained the following:

.red{ color:red; }
.left{ float:left; }

Unbelievable! I had no idea you could add two (or more) styles to a single html element. Now you know too!