Forum Moderators: not2easy

Message Too Old, No Replies

Need Help - Simple CSS Style Sheet Update

help

         

soleman

10:32 pm on Jul 19, 2009 (gmt 0)

10+ Year Member



I'm trying to change the font color and link / hover color for one container on my site. How can I create a new <hX> tag or style tag in my style sheet and reference it?

I just want white text and light gray when the hovered on the hyperlink.

If there is a site to look at to help that would be great. I've been googling sites all over the place but they are a little too deep.

Thanks!

Marshall

12:43 am on Jul 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Without seeing the CSS and assuming your <div> tags are IDed, something like this:

.Division h2 a:hover {
color: #FFF;
background: #CCC;
}

If you're just targeting one <a> tag, you can do an in-line style:
<a href="link" style="a:hover {color: #FFF; background: #CCC;}">Link Text</a>

Hope this answers your question.

soleman

7:29 pm on Jul 22, 2009 (gmt 0)

10+ Year Member



^ For some reason that doesn't work. It just keeps it the same as the rest of the page.

<a href="link" style="a:hover {color: #FFF; background: #CCC;}">Link Text</a>

soleman

12:09 am on Jul 23, 2009 (gmt 0)

10+ Year Member



I have it fixed... took some time but we are all good!