Jump to content

image qui change au passage de la souris


Recommended Posts

Bonjour,

Ok j'ai vu et j'ai fait ce code là mais ça me fait un carré noir c'est tout. Il doit y avoir un mauvais code dans le css :

.gammelaviecotemiel {    
width: 400px;
height: 400px;
border: 2px solid black;
background-image: url('images/la-vie-cote-miel-boutoncss1.jpg');
background-size: 400px 400px;
display:inline-block;
}
.gammelaviecotemiel:hover,
.gammelaviecotemiel:focus,
.gammelaviecotemiel:active {
background-image: url('images/la-vie-cote-miel-boutoncss2.jpg');
}
 

bug affichage code css.docx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...