Hey folks,
I am in the middle of doing a design. I want to use just one stylesheet to take care of the CSS for me. But I have a problem.
One part of the page is colored in say #3366ff and has Hyperlinks.
Another part of the page is colored white and also has Hyperlinks.
Here is an example of the way the CSS is done for part A and part B. Makes it easier to explain:
Now, for them both to have separate hyperlink styles, I was certain I could do it this way:
And use the similar style in partb but different colors. But it doesn't work. It will either use one or the other on both or if there is a master style for links etc in the document, it uses that.
I was certain this would work.
Anyone have any ideas why not, or if it should?
I am in the middle of doing a design. I want to use just one stylesheet to take care of the CSS for me. But I have a problem.
One part of the page is colored in say #3366ff and has Hyperlinks.
Another part of the page is colored white and also has Hyperlinks.
Here is an example of the way the CSS is done for part A and part B. Makes it easier to explain:
Code:
.parta {
color: #222222;
background: #ffffff;
}
.partb {
color: #F1F1F1;
background: #3366FF;
Now, for them both to have separate hyperlink styles, I was certain I could do it this way:
Code:
.parta a:link, a:visited, a:active {
color: #494949;
}
.parta a:hover {
color: #282828;
I was certain this would work.
Anyone have any ideas why not, or if it should?