One: I've gotten my first comment spam on the new system - that was fast!
Two: I have a CSS question for all y'alls. This page was originally set up with a default link-color rule for the sidebar, header, and footer; links in this box, the #content div, were given a special rule: #content a:link { color: #3fa111; }
. Fabulous, yeah? But when I wanted to assign yet another set of colors to the links in the entry-titles, using a.googleju:link { color: black }
- no dice. The first rule is considered more specific, because it contains an ID selector, and the second rule only has a class selector. Without declaring my googleju rule to be !important
, it was dead in the water.
I don't like to use !important - it's poor form. So I rewrote the stylesheet to make the #content colors the default, and declared exceptions for the other three div's on the page. Which is fine, and will work until/unless I decide I need to put two kinds of links on the sidebar. At that point, it seems my only option is to rewrite all my HTML templates (based on the default WordPress theme) to use class selectors, rather than IDs.
So here's my question: is there some sort of reason the default templates are set up with ID selectors?
(more...)