HTML.form.guide

CSS3 button hover effects

Creating CSS3 Button Hover Effects

The CSS3 “hover” is a pseudo-class that enables you to select and style elements on a web page when the mouse moves over an element. You can use Javascript or CSS style sheets to react to this event depending on your objective. For example: button.checkout { background-color:blue; } button.checkout:hover { background-color:green; } The CSS code above styles a button with class ‘checkout’. The default color of the button is blue and when the mouse is over the button, the color changes to green.

Continue Reading →