Previous Message
Next Message

Re: [css-d] need to remove background rollover on selected links

Sent by Alex Robinson on 20 December 2002 16:04


>I asked earlier about removing underlines on links and it works. Now,
>using the same style sheet I want to remove the background rollover on
>selected links. The a:hover controls the entire page. So, if I want to
>make two links on the page NOT have the background rollover, how do I do
>that? I started setting up a class selector, .linkbkg , to remove the
>background rollover... but it would not work. Can this be done?

As long as your <a> tag has a class="linkbg" in it, this should work

.linkbkg:hover
	{
	background-color: transparent;
	}

or set the color to #fffff if you prefer
Previous Message
Next Message

Message thread: