How to change background color upon hovering a div?
Question
There is a div as below.
1 | <div class="e">Wei Xia</div> |
How to change the background color when I hover those two element?
Answer
1 | .e:hover { |
By using :hover
will update the background color. You can view the demo below.
Reference
This is the end of post