Monday 28 April 2014

Best Practices in CSS

Use div for blocks no table
Use classes and ids
Use span for inline style changes
Use sprites for small images
Keep your code organized
Use comments
Keep library of css templates so you can use them in your next project
Declare your xhtml pages with DocType of xhtml1
Use W3c validators

Use consistent naming conventions

No comments:

Post a Comment