Thariama Thariama - 1 month ago 6
CSS Question

css: how to remove pseudo elements (after, before, ...)

I would like to use a switch for the layout of paragraph tags on a webpage.

I use the after pseudoelement

p:after {content: url("../img/paragraph.gif");}


Now i need to remove this css code from the page. How can this be done easily (jquery is already used on the page)? (i do not want to include or remove files containing css)

Answer
p:after {
   content: none;
}

None is the official value to set the content, if specified, to nothing.

http://www.w3schools.com/cssref/pr_gen_content.asp

Comments