Coders have their own personalities and ways of doing things. Some of these habits and coding practices are great and efficient - and should be learned from. Others are either a lack of discipline in adhering to a convention - or submitting to the ambiguity of not having an exhaustive, all-encompassing convention to refer to.
The following is a convention was created and tuned over the course of many years working with many groups and taking feedback from many bright minds.
#namespace1 div, #namespace2 div { background-color: #EAEAEA; border: 1px solid #EAEAEA; -moz-border-radius: 1em; -webkit-border-radius: 1em; border-radius: 1em; color: #3C3C3C; margin: 0 auto; padding: .5em; text-align: left; width: 25em; }
Following this convention, your code should become much more consistent and maintainable. This does not, however, speak to the quality of that which is coded. For tips on writing CSS, see the CSS: Summary of Best Practices.
This page is licensed under a Creative Commons Attribution 3.0 License