Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two Sets of a:hoover? 1

Status
Not open for further replies.

danielh68

Technical User
Joined
Jul 31, 2001
Messages
431
Location
US
Hi.

I creating this site at and I customized a set of link tags (via CSS) which can be view on the left menu. I like the white contrast on mouse over, but I just realized a flaw in my design. If the user mouses over the "Learn More" link at the end of the first paragraph (white background)the link naturally turns white (I'd prefer it a dark grey). Can I create two different a:hover tags via CSS? One for the left menu bar and one for white backgrounds, which can be used on same page?

Advance thanks.

DanH
 
You can use the ID or Class method in the CSS.

Off the top of my head, I think the class method is as follows:

a.menu:hover {
your css stuff here
}

a.other:hover{
your css
}

Then in the HTML tag for the desired css effect:

<a href=&quot;whatever&quot; class=&quot;menu&quot;>Link 1</a>
<a href=&quot;whatever&quot; class=&quot;other&quot;>Link 2</a>

Hope that helps.

 
Great. Thanks, sweevo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top