View Single Post
Old 10-22-2004, 06:41 AM   #1 (permalink)
digitman
Contributing Member
 
Join Date: 07-11-04
Location: Pakistan
Posts: 288
iTrader: 0 / 0%
Latest Blog:
None

digitman is liked by somebodydigitman is liked by somebodydigitman is liked by somebodydigitman is liked by somebodydigitman is liked by somebody
Send a message via MSN to digitman Send a message via Yahoo to digitman
using different link colors through css

Hi.
I want to use a different link color for different elements on my page. For example I have blue as the background color of my page's header,and I want to use white font color for the links in this area,and a different color for other areas.I'm trying to use classes but they don't work.There's my code from the css file:

Code:
.header { background-image: url(images/tabstrip.gif); background-repeat: repeat-y; text-indent: 5%; } A.header.:visited { color: white }
But I've had no success.If I remove the ".header" part from the above statement it works,but then the color is the same throughout the page.Oh and here's the html code:

Code:
<div class="header"> <a href="index.php">Test link</a> </div>
That's all of the code i've written so far.I'll move on to designing the other elements after I've designed the header..on which I'm stuck right now ..Any thoughts?
Thanks in advance.
digitman is offline   Reply With Quote