Extensive article by Will Boyd on the ::before
and ::after
Pseudo-Elements.
This article starts on the ground floor, explaining these pseudo-elements and how to use them. We’ll dive into saucier topics as the article progresses. We’ll also be talking about the CSS content property a lot, since it’s very much related.