How to change div color on mouse hover using css?

Asked 16-Nov-2017
Viewed 852 times

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>



Comment
Thank You for the help. - Anonymous User20-Feb-2019