:hover is not working when applied to my styles:
http://jsfiddle.net/E9DXJ/
<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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With