Forums
View unanswered posts | View active topics It is currently Mon Oct 20, 2014 2:06 am



Reply to topic  [ 2 posts ] 
 a: hover span not working properly 
Author Message

Joined: Fri Sep 28, 2012 8:10 am
Posts: 3
Post a: hover span not working properly
Hello!

The hover effect is not done properly, the span element does not change the background color when you hover on the anchor. Any suggestions?

Code:
<html>
    <head>
        <title>Prueba</title> 
        <style type="text/css">
            #p
            {
                background-color: red;               
            }
           
            #p span
            {
                background-color: #777777;
                color: #FFFFFF;
                border-radius: 50%;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                -ms-border-radius: 50%;
                behavior: url("theme/web/css/PIE.htc");
            }
           
            #p:hover span
            {
                background-color: #000000;
            }
        </style>       
    </head>
    <body>
        <a id="p"><span>2</span> DEMO</a>
    </body>
</html>



Thank you so much!
PS: I'm Spanish, sorry my bad English


Fri Sep 28, 2012 8:20 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1444
Post Re: a: hover span not working properly
Try -pie-watch-ancestors: 1

http://css3pie.com/documentation/suppor ... -ancestors


Fri Sep 28, 2012 8:36 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.