CSS markup a little “busy” in Word Press
-
I’m noticing an excess number of CSS classes and id’s in Word Press. In general, if a division encloses an area, and there is only one type of, say h1 or h2 or h3 or p or whatever inside that area, it isn’t necessary (and is bad style) to put an id on the division and also a class or id on the enclosed entity. All you need to markup is the div with an id (or class). Then the style for the enclosed stuff is done as, for example #mydiv h2 { [styles] }, and everything works because of the cascade.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘CSS markup a little “busy” in Word Press’ is closed to new replies.