Click to See Complete Forum and Search --> : applying a style to a link in a div's ID#


tefnut
06-07-2006, 09:46 AM
I have a div where I want the links to appear a certain way without having to put a 'class' fingee in each 'a href' so I tried this:

div#topNavB a:link,a:visited {}

but it then applies the style to all of the links in the page, but I just want the style to affect the links in the div called topNavB

I know theres a simple answer to this and I will look very silly if someone tells me, Id be grateful if anyone could

Cheers

Charles
06-07-2006, 10:00 AM
div#topNavB a:link, div#topNavB a:visited {}

tefnut
06-07-2006, 10:38 AM
Cheers, that worked, I feel silly yet satisfied

xxx