Reputation: 212
:hover is not working when applied to my styles:
<nav>
<div class="container">
<div class="row-fluid center">
<div id="navcontainerimg" class="span12 center">
<img src="img/hs-header.png"/>
</div>
<div id="navcontainernav" class="span12 center">
<span class="topleft">Our Story</span>
<span class="topright">Awesome Support!</span>
<span class="bottomleft">Read the Blog!</span>
<span class="bottomright">Join Now</span>
</div>
</div>
</div>
The classes can be styled without the :hover, but when added it does nothing. If I click the :hover style display in chrome it will show it there, but not functional.
Upvotes: 3
Views: 1252
Reputation: 1184
change on #navcontainernav z-index: -5; to z-index: 1;
this works on all browsers
Upvotes: 2
Reputation: 15616
This is because you've set a negative z-index
for the container so Chrome essentially won't recognise the hover events.
Change it to:
#navcontainernav
{
width: 720px;
margin-left: 40px;
height: 170px;
top: -233px;
border-radius: 8px;
position: relative;
z-index: 1;
}
Or any other positive value.
Upvotes: 10