How to change div color on mouse hover using css?

Asked 7 years ago
Viewed 917 times

15

How to change div color on mouse hover using css?


1 Answer


2

you can change div color on mouse hover by using following lines of code:

html code

<div class="test">Article List								

                            </div>

css code

<style>
     .test:hover {
      background-color:grey;
     }
</style>


answered 7 years ago by Anonymous User
  1. Thank You for the help. - Anonymous User 6 years ago

Your Answer