by bmelton · 15y ago · 0 comments
Other than that, the best advice I can offer that I DO follow is that I group all HTML elements together, all IDs together, and then all classes together. Within each of those groupings, everything is in alphabetical order.
body { foo: bar; }
form { foo: bar; }
h1, h2, h3 { foo: bar; }
input { foo: bar; }
p { foo: bar; }
#container {}
#footer {}
#nav {}
.etc {}
.even {}
.odd {}
and so forth.one thing to do is to place class names based on the url with your id's. the class name can be generated from the request_uri (assuming the html code is in a view/template/include).
example: <div id="container" class="contact_us">
then if you need tweaks to a specific page, just add #container.contact_us { foo: bar... }