If you want to change the style of the links specifically in the .sidebar_list, you have to do this (there is no .sidebar, only #sidebar):
Code:
.sidebar_list a { color: #C35617; text-decoration: none; }
.sidebar_list a:visited { color: #000000; text-decoration: none; }
.sidebar_list a:hover { color: #df0000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
Likewise, #content-specific declarations should look like this (there is no .content, only #content):
Code:
#content a { color: #C35617; text-decoration: none; }
#content a:visited { color: #000000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
#content a:hover { color: #df0000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
#content a img { border: none; }
You need to indicate the parent element so that it's more "specific" and so that it overrides the more "general" declaration for a, a:visited, and a:hover. You have to look at the HTML to figure out of that element is labeled with a class, or ID, or both, and then you can choose:
Classes = dot; IDs = hash/pound. In this case, I chose .sidebar_list (class), and #content (id).
BUT, if you're declaring the same set of attributes as the more "general" one, it's redundant. You should change the colors for each more specific declaration.
You should also read up on the cascade and specificity if you want to learn more. 

Originally Posted by
jgolick
Hiya.
I am a CSS noob so please bear with me.
I'd like to tweak the a:visited properties so that visited links in the sidebar are treated differently than those in the main text.
Here is what is currently under global elements:
a { color: #C35617; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
a:hover { color: #df0000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
a img { border: none; }
This is what I've tried, knowing next-to-nothing (as will be apparent):
.content a { color: #C35617; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
a:hover { color: #df0000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
a img { border: none; }
.sidebar a { color: #C35617; text-decoration: none; }
a:visited { color: #000000; text-decoration: none; }
a:hover { color: #df0000; text-decoration: none; border-bottom: 1px dotted #5F5A59; }
a img { border: none; }
Clearly, this is not getting the job done. I'm using Cutline 1.4 three column right, on WP 2.8.4, site is
here.
I welcome all thoughts, suggestions, recommendations. Will accept a fair amount of snippy attitude. Profuse thanks!
Bookmarks