
Originally Posted by
MechElec
I'm curious about something, why are the brackets in the CSS put on different lines by my designer instead of it all just being on one line like you did in your code? I know that I've seen that elsewhere too.
It makes no difference. You can format the code how you want (within reason) 
I usually put one line rules on the same line so that the stylesheet doesn't spread out too much but for more than one line I use this format:
Code:
.test{
color:#fff;
background:#000;
}
Of course you could just do this also:
Code:
.test{color:#fff;background:#000}
The trailing semi colon is optional on the last element. It just means that there is more to follow but its good practice to add it when using multiple rules.
Bookmarks