How to change div color on mouse hover using css?

Asked 8 years ago 1796 views

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>


  1. Thank You for the help. Anonymous User | 7 years ago

Write Your Answer