Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] First WordPress Skin help… Re: [Solved] First WordPress Skin help…

#61990
i9mickey
Member

Thanks for the reply. I’m pretty sure I understand what you’re saying, and I tried it, but it doesn’t seem to be working. I’ve been using CSS for awhile now, but I still think of myself as an amateur a lot of the time. If you don’t mind, I’d like to show here what I did and see what you think might be the problem.

Code:
#sidebar-inside ul li a:link {
color:#7F4300;
text-decoration:underline;
}

#sidebar-inside ul li a:visited {
color:#7F4300;
text-decoration:underline;
}

#sidebar-inside ul li a:hover {
color:#F47B20;
text-decoration:none;
}

#sidebar-inside ul li a:visited:hover {
color:#F47B20;
text-decoration:none;
}

Also, the thing I don’t understand is that the link should have worked right anyway because the "inside" div was within the "sidebar" div, so it should have inherited the CSS from that, right? Your Russian doll analogy is a good one, but is that how it works for the heirarchy? If I have 3 divs nested inside each other and the first div sets the CSS rules for links, then shouldn’t the nested divs follow suit?

And this is how it used to look.

Code:
#sidebar a:link {
color:#7F4300;
text-decoration:underline;
}

#sidebar a:visited {
color:#7F4300;
text-decoration:underline;
}

#sidebar a:hover {
color:#F47B20;
text-decoration:none;
}

#sidebar a:visited:hover {
color:#F47B20;
text-decoration:none;
}

Again, thanks for the help. I do appreciate it.