Play Video
Pause
Playback Rate
1.00x
Speed
2×
1.5×
1.25×
1×
0.5×
0.25×
Current Time
0:00
/
Duration Time
0:00
Toggle side panel
Non-Fullscreen
Autoplay
is off
off
Conditionally Style an Element with the Focus Pseudo-class
Instructor
Laurie Barth
CSS
Share this video with your friends
Send Tweet
Copy link
Published 4 years ago
Updated 2 years ago
Use the focus pseudo-class to assign conditional styling when I user selects an element.
View code for this lesson
Comments
(0)