Lesson
Conditionally Apply Style on Hover with the CSS Hover Pseudo-class
Use the hover pseudo-class to apply conditional styling when a user interacts with an element but has not yet activated it.
- Duration
- 0 min
- Access
- Free
- Transcript
- Available
Use the hover pseudo-class to apply conditional styling when a user interacts with an element but has not yet activated it.
Video Transcript
Instructor: Start with a simple selector. We're adding the rule background color and setting it to red. If we add a colon and the hover pseudo class, that rule will only apply when a mouse is hovered over the button.