How to remove or disable before and after pseudo classes?

jilseego picture jilseego · Jul 25, 2012 · Viewed 28.8k times · Source

This seems very trivial but I couldn't figure it out. Simply overriding it with display:none doesn't work on IE8.

#selector::after {
    display: none;
}

I am modifying a theme that's using before and after pseudo classes to add image sprites.

Answer

bugwheels94 picture bugwheels94 · Jul 25, 2012

Use colon only one time

#selector:after {
    display: none;
}