Hi everyone,
I've been asking many questions . . . and have yet another one!
I've been trying to do something as simple as changing a link color in a class, but it's not working for me.
The CSS code is:
Everywhere I look as I learn CSS, it appears this should work! I tried simply to have "a.sidebar {color: white}" to change all link attributes instead of specifying each individual one like link, visited, hover, active. But that wasn't working, so to be safe I just did the above code for testing purposes. But still nothing is working.
The section of the page code is,
Shouldn't this work? Or am I supposed to put a class in the link tag itself as well? I tried doing something like that before and that still didn't work. So . . . what in the world am I missing?!
Thanks in advance for your help . . . I do appreciate it. And I really appreciate the patience of those who have been helping me in my other threads too!
~Michael
I've been asking many questions . . . and have yet another one!
I've been trying to do something as simple as changing a link color in a class, but it's not working for me.
The CSS code is:
Code:
.sidebar { position: absolute; width: 165px; top: 0px; left: 5px; border-right: 1px solid; } a.sidebar:link {color:white;} a.sidebar:visited {color:white;}
The section of the page code is,
Code:
<div class="sidebar">Test Test Test Test Test Some Text for Testing, and some more and more and more and more and more and more and more and are you <a href="workmenforChrist.org">Link</a> reading this and this and this and how about some of this, did you catch that and this and some more and some more text and test text?</div>
Thanks in advance for your help . . . I do appreciate it. And I really appreciate the patience of those who have been helping me in my other threads too!
~Michael
Comment