Styling for Hover and Focus States Together in CSS


Apply styles for both hover and focus states to ensure visual consistency and accessibility.

Source Code

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