How to change div color on mouse hover using css?

Asked 16-Nov-2017
Viewed 578 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>



Comment
Thank You for the help. - Anonymous User 20-Feb-2019


Loading...
Ads