My thinking is that you are declaring the value for the div only with the class “classname†in the divs “div-id-name†and “div-id-name2â€. That seems SO complicated.
Why wouldn’t you just declare the class value? Why get specific with the class and specify the class “classname†as the child of a div?
.className - <-- all elements with classname will be styled. div .className <-- all elements inside that div that have className will be styled div.className <-- only divs with class className will be styled.
1. Debugging - I can tell if #someID has to be a division or if it can be a paragraph based on the properties and values declared. I don't want to search through my HTML document to find if #someID is a division or what. Also, if you're letting someone else skin your site (or create their own styles for forums and such) it's easier for them. 2. Selectors.