Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
my share dropdown menu its working fine with Chrome and Opera but not with Firefox and internet explorer even the image of sharee its not appear in those two browsers, did any one have an idea to fix this case

CSS
#menu
{
width:38px;
height:33px;
overflow:hidden;
position:relative;
z-index:3;  

  
float:right;

/* CSS3 transition */
-moz-transition-property: height; /* Firefox 4 */
-moz-transition-duration: 1s; /* Firefox 4 */
-webkit-transition-property: height; /* Safari and Chrome */
-webkit-transition-duration: 1s; /* Safari and Chrome */
-o-transition-property: height; /* Opera */
-o-transition-duration: 1s;
    top: 2px;
    left: 0px;
}    

#menu:hover
{
height:220px;
}



#menu:hover > #share
{
height:33px;
width:33px;    
background-image: url('../iconsimg/sharee.png);
background-repeat:no-repeat;
}        

#share
{    
height:33px;
width:33px;
background-image: url('../iconsimg/sharee.png');
background-repeat:no-repeat;
cursor:pointer;
float:right;
position:relative;
}    

.ico1
{
height:33px;
width:33px;
float:right;
background-image:url('../iconsimg/fbook.png');
background-repeat:no-repeat;
cursor:pointer;
position:relative;

}

.ico1:hover
{
background-image:url('../iconsimg/fbookhov.png');
background-repeat:no-repeat;

}


.ico3
{
height:33px;
width:33px;
background-image:url(../iconsimg/gplus.png);
background-repeat:no-repeat;
float:right;
cursor:pointer;
position:relative;
}    

.ico3:hover
{
background-image: url(../iconsimg/gplushov.png);
background-repeat:no-repeat;
}

.ico4
{
height:33px;
width:33px;
background-image:url(../iconsimg/twitt.png);
background-repeat:no-repeat;
float:right;
cursor:pointer;
position:relative;
}    

.ico4:hover
{
background-image:url(../iconsimg/twitthov.png);
background-repeat:no-repeat;
}


HTML
<div id="menu">
<div id="share">
</div>

<a href="whatever you want">
<div class="ico1">
</div>
</a>
<a href="whatever you want">
<div class="ico2">
</div>
</a>
<a href="whatever you want">
<div class="ico3">
</div>
</a>
<a href="whatever you want">
<div class="ico4">
</div>
</a>
</div>
Posted

1 solution

you forget a single quotation in your css
C#
#menu:hover > #share
{
height:33px;
width:33px;
background-image: url('../iconsimg/sharee.png); // <--- here
background-repeat:no-repeat;
}


CSS
background-image: url('../iconsimg/sharee.png');
 
Share this answer
 
v3
Comments
Member 10690878 10-Dec-14 17:03pm    
Hi @amin khoshzahmat thanks for your comment i hav added but the problem still as it is :-(
amin khoshzahmat 10-Dec-14 17:23pm    
according to (http://www.w3.org/TR/css3-transitions/#transition-property-property) you dont need to use vendor prefix!
-------------
by the way you can check your property,if it is ok to your browser version
http://caniuse.com/#search=transition
-------------
try this (short handnotation): transition: 1s height;
-------------
when ever you want to check your css
(paste your css into 'By direct input' tab, then check it
http://jigsaw.w3.org/css-validator/#validate_by_input
-------------

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900