Categories
CSS

How to remove pseudo elements with CSS?

Spread the love

To remove pseudo elements with CSS, we set the content property.

For instance, we write

p:after {
  content: none;
}

to remove the content after each p element by setting their content property to none.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *