Prefixes

Get introduced to CSS units and learn how to define classes by adding prefixes.

We have to learn one more unique feature before we get to more utility classes. It’s common to want objects to display differently when the user drags a mouse over them, which corresponds to the CSS pseudo-class hover.

Define CSS classes by adding prefixes

In Tailwind, we can define most CSS pseudo-classes by adding prefixes to other Tailwind utilities. If we want an anchor tag to have an underline when we hover the mouse over it, we can use the ...