DEV Community

Discussion on: Do you use CSS ::before and ::after pseudo elements?

Collapse
 
cogitoergo profile image
Karolis

I'm using pseudo elements for a range of problems, starting from simple tooltips via data-attr, to managing responsive images and their aspect ratios with padding-bottom hack. Also, for little dropdown arrows/chevrons, for css triangles etc etc etc.

Collapse
 
brob profile image
Bryan Robinson

When I want to show people the power of modern CSS, I LOVE showing off the tooltip trick! You can do so much with Pseudo elements!