CSS Basics: Using :hover and :active Pseudo-Classes

1 · · Aug. 16, 2019, 9:19 p.m.
CSS offers several pseudo-classes for styling elements that can help differentiate between various element states. Here we’ll focus on :hover and :active to see how to improve visual feedback for users and make sure your UI looks great across devices! 🔥 span.hover,span.wrong-order, span.active { color: #6DB65B; } span.hover:hover, span.active:hover { color: #FAE042; } span.active:active, span.wrong-order:active { color: purple; } span.wrong-order:hover { color: #FA...