Jump to content

Effect A Class From Rollover Of Another


glenelkins

Recommended Posts

Hi

 

Lets say i have a nav item like this:

 

.navitem a { display:block; text-indent:-3000px; overflow:hidden; width: 100px; height: 30px; background: url('../images/nav/test.png') no-repeat; }
    .navitem a:hover { background-position: -100px; }
    .navitem span { position: absolute; margin-top: 10px; margin-left: 10px; color: red; }

<div class="navitem"><span>TEXT HERE</span><a href="">Link Item</a></div>

 

How can i make it so when the link background image is hovered over, the text colour outside of the link changes too? When rolling over all this will do is pick the .navitem a:hover class and scroll the background image...im not sure how to make the text in the <span> change

 

The span needs  to be outisde the <a> for a reason!

Link to comment
https://forums.phpfreaks.com/topic/143460-effect-a-class-from-rollover-of-another/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.