DEV Community

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

Collapse
 
shahin059 profile image
Sahin Mia

I think without ::before and ::after pseudo elements modern ui design is not possible.

Collapse
 
brob profile image
Bryan Robinson

It definitely would be much more difficult and we'd clutter up our HTML with a lot of things just for the design.

What's your favorite design pattern that uses them?

Collapse
 
shahin059 profile image
Sahin Mia

I am really new in Front end development. What exactly the design pattern means in css ? Is it a method to write css like BEM ?

Thread Thread
 
brob profile image
Bryan Robinson

Sorry I wasn't clear! I mean what's your favorite way to use them?

I really enjoy using them to make interesting borders and accents bryanlrobinson.com/blog/2018/08/07...