DEV Community

Discussion on: A Quick Note On CSS Pseudo Elements

Collapse
 
vladi160 profile image
vladi160

They are good when you need some style, which requires another HTML element, but the good practice is not use HTML elements just for styling.

No way to manipulate pseudo elements with JS, but they are some hacks, of course:
stackoverflow.com/a/8046436/5849229

Collapse
 
kiranrajvjd profile image
Kiran Raj R

Thanks for the information