CSS Validation
Validate, Validate, Validate!
Make sure the HTML document you are working on is valid. It needn't necessarily be 100% valid as per W3C recommendations, but at the very least it will tell you about any unclosed, improperly nested elements, which in turn could cause CSS problems.
In order to Validate you will of course need a valid <!Doctype> and you should be aware of the <!Doctype> switch that switches on "standards compliant" mode in IE6.
Periodically validate your CSS this will help find things like those missing semi-colons.
Get It Right First!
Design in a CSS Compliant browser first. e.g. Firefox, Moz, Opera, Safari. Then go back and test in IE. It's easier to "dumb down" your CSS using hacks/filters/workarounds for IE. Much more difficult the other way around, and it lets you see how stuff should work before IE shatters your CSS illusions..
Updates:
«« Crib Sheet Index | Next Page»»


ChristinaYoung on