I have this HTML code:
<div class="authTabs">
<div class="h2">Login</div>
<div class="h2">Register</div>
</div>
I am using CSS. Can someone tell me how I can make it so that my cursor changes to a finger pointing and my background color changes when the Login or Register DIVs are hovered over?
See DEMO
.authTabs {
cursor: pointer;
}
.h2:hover {
background-color: red;
}
Add this to your css definitions:
.h2:hover {
cursor: pointer;
background-color: red;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With