:hover and :focus States Together in CSS


Consistently style :hover and :focus for better accessibility and user experience.

Source Code

.button:hover, .button:focus {
    background-color: #1177dd;
    color: white;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments