Friday, 15 August 2014
Are You Following the Principles of Top Notch CSS Design?
If you are going to invest the time in coding CSS, it only makes sense to take the time to validate the code that you create. However, it never ceases to amaze me how many designers skip over this vital step. Validating your code allows you to clean up any problems and ensure that it’s going to work well for your visitors.
Although I honestly believe that it is more effective to document in a separate file, I know that there are plenty of files who simply don’t agree with this practice. If you refuse to document in a separate file, the next best thing you can do is use a CSS compressor (in fact, even if you choose to use a separate file for documentation, you can still benefit by using a CSS compressor). You can use this
Avoiding hacks is a piece of advice that experts have been dispensing for some time. You can go back all the way to 2003 and see that(who is an accomplished developer and author) has been warning designers of the implications of CSS hacks for some time: “The complexity monster has reappeared, right in the center of modern Web development. Nowadays it doesn’t manifest itself as an endlessly nested table, but as an endlessly complicated CSS hack.”