user36702878
user36702878

Reputation: 1

CSS image hover does not work

i have another one problem.please guide me..

#footer-menu  .homeButton a {
background-image: url('homebutton.jpg');
background-repeat: no-repeat;
background-position:center;
height:70px;
padding:5px 8px 50px 15px;
border:none;
width:70px;
}

in this code when I change the position as top left,it display only white image.how to change the position.

#footer_menu .homeButton:hover a{
background:none;
}
#footer_menu .homeButton a:hover{
background:url("homebutton2.jpg");
background-repeat: no-repeat;
background-position:center;
 }

And in this above code when I hover over the image,it will not shown the homebutton2 image.what i do?please help me.

Upvotes: 0

Views: 67

Answers (1)

Ofer Haber
Ofer Haber

Reputation: 628

this rule hides the anchor. #footer_menu .homeButton:hover a{ background:none; }

Upvotes: 1

Related Questions