paint-brush
How to use CSS pseudo-classes :before and :afterby@kolosek
938 reads
938 reads

How to use CSS pseudo-classes :before and :after

by Nesha3mApril 21st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The CSS :before and after properties are what also known as pseudo elements. They are used to add something before or after the content of an element. They can be extremely helpful when adding icons, clearing floats, and in many other cases. The pseudo elements have a high browser support (over 98%) and we won’t have a headache when using them. There are a lot of great uses for these pseudo elements, and we are here to explore some of them. The examples illustrate just some of the many possible usages.
featured image - How to use CSS pseudo-classes :before and :after
Nesha HackerNoon profile picture
Nesha

Nesha

@kolosek

CEO @ Kolosek.com

About @kolosek
LEARN MORE ABOUT @KOLOSEK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Nesha HackerNoon profile picture
Nesha@kolosek
CEO @ Kolosek.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here