Forum How do I...?

Bullet appearing twice

mattosurf
Hello,

The following code is setting the icon twice. Not sure if something is written wrong.

div.dedication :after {
    content: '❧';
    font-style: normal;
}
mikeday
You probably want to remove the space between the selectors. "div.dedication::after" will match the after pseudo-element of the div, whereas "div.dedication ::after" is equivalent to "div.dedication *::after" and will match the after pseudo-element of every descendant of the div.