More WordPress Babbling

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?


Three: Also, from Rana:


You are ‘growing one’s own food’.
You are guided by two words: ‘Live simply.’ You value quality over quantity in most things, and you have little use for the materialism and consumerism of modern culture. You know the value of hard work and try to be self-sufficient as much as possible, and what you do you do well. Unfortunately, no man is an island, and you cannot do everything yourself. Your puritanical work ethic makes makes people think that you are weird, and not much fun. Your problem is that growing one’s own food has been obsolete for a long time.
What obsolete skill are you?

—–

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*