Forums
View unanswered posts | View active topics It is currently Wed Apr 16, 2014 1:56 am



Reply to topic  [ 2 posts ] 
 ul li a:hover CSS3 doesnt work 
Author Message

Joined: Thu Aug 26, 2010 8:11 am
Posts: 1
Post ul li a:hover CSS3 doesnt work
Hello,

my ul li a css3pie works but when i want to change it on the hover (ul li a:hover) it doesnt work anymore....

My code:

ul#menu { padding:0; margin:0; }

ul#menu li {
float:left;
text-align:center;
list-style-type:none;
width: 110px;
margin: 20px 0 15px 0;
}

ul#menu li a {
padding: 10px;
font-family:Georgia;
font-weight:bold;
color:#5f5f5f;
font-size:18px;
text-decoration:none;
border:none;
display:block;
}

ul#menu li a:hover {
color:#FFF;
/*background-color: #1f1f1f;*/
background-color: #FF0000;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}

ul#menu li a:hover { behavior: url(pie.php); }

<ul id="menu">
<li style="margin-right:20px;"><a href="/">Welcome</a></li>
<li style="margin-right:20px;"><a href="/about-us/">About us</a></li>
<li style="margin-right:240px;"><a href="/gallery/">Gallery</a></li>
<li style="margin-right:20px;"><a href="/collection/">Collection</a></li>
<li style="margin-right:20px;"><a href="/services/">Services</a></li>
<li style="margin-right:0;"><a href="/contact/">Contact</a></li>
</ul>


Thu Aug 26, 2010 8:16 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
Post Re: ul li a:hover CSS3 doesnt work
A number of people have run into this. IE apparently won't apply behaviors if they're specified in a :hover selector. Instead, apply the behavior using the main "ul#menu li a" selector. It should then activate itself when you hover.


Thu Aug 26, 2010 11:34 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.