Pet peeve: CSS without white space
I'mjustgoingtothrowouttherethatIneverunderstoodwhypeopleinsistonstickingalltheirCSSrulesontoonelineallstackedoneachotherinamess.
But really, I've seen this trend show up a lot more lately on sites, including those supporting standards. I was never clear on the reasoning for writing stylesheets in such a way. My best guess was that it was an attempt to cut down on bandwidth usage with the removal of all the white space. I doubt this would have any significant effect on anything but a juggernaut of a web portal though. If you're unclear what I'm referring to, here's an example:
.omgstyle {display:block;position:absolute;top:20px;left:20px;height:200px;width:50px;font-size:12px;}
While I would've done it more like this:
.omgstyle {
display: block;
position: absolute;
top: 20px;
left: 20px;
height: 200px;
width: 50px;
font-size: 12px;
}
Now this is all very basic. I'm not out to teach any code lessons here, but I do want to point out the advantages to treating your styles with the same respect as your visual design. Make it easy to read. Make it clean. Make all your classes and id's self-descriptive. Put everything on its own line, with spaces. What you'll end up with is the same solid code but far easier for you and others to read both in pure readability and in comprehension of how it's interacting with the markup. If anyone else ends up taking over your work, their job becomes significantly easier to catch up on. If there's a bug on a page, it's far less work to read through the styles to find what may be wrong. This probably saves a good deal more money in the end than the 20 cents you shaved off your bandwidth bill, if that's what your goal was. We have punctuation and grammar in language for a reason and it's been there thousands of years. There's no good reason that I can see to drop it for any scripting/markup language. Maybe you can convince me otherwise, but I certainly don't see the reasoning.