June 23, 2015 02:52 pm GMT
Original Link: https://css-tricks.com/so-many-states/
So. Many. States.
"States" as in, contexts or situations in which any given element might be in. Let's take a stroll.
Imagine a button. Gosh I love buttons. So useful. We first think of a button in it's default state. It looks nice and button-like, ready to be clicked. That's one state. In CSS, we often think of some more:
- The
:hover
state - The
:active
state - The
:focus
state - If it's a link, the
:visited
state
The type of HTML element plays a …
So. Many. States. is a post from CSS-Tricks
Original Link: https://css-tricks.com/so-many-states/
Share this article:
Tweet
View Full Article