1

I am trying to replace the image #about with another image on hover and no matter what I do I can't get it to work.

Help appreciated thanks!

#about {
    width: 150px; 
    height: 117px; 
    padding-top: 100px; 
}

#about:hover {
    background-image: url("about_button2.png"); 
}
aroabarberan
  • 157
  • 1
  • 2
  • 10

1 Answers1

0

#about {
    width: 150px; 
    height: 117px; 
    padding-top: 100px;
    background-color: gray; 
}

#about:hover {
    background-image: url("https://i.stack.imgur.com/mw9tP.png");
}
<html>
    <body>
        <div id="about"></div>
    </body>
</html>
aroabarberan
  • 157
  • 1
  • 2
  • 10
Shakil Hossain
  • 1,701
  • 13
  • 25