In CSS use display:none on the element, but keep its :after

LellPhelt

New Member
Is it possible to not display an element, as with display:none, but continue to display the :before and/or :after?I tried \[code\]#myspan {display:none}#myspan:after {display:inline; content:"*"}\[/code\]but that didn't work. I'm trying to have CSS replace the content of a span with an asterisk, without introducing jQuery.
 
Back
Top