0

I'm trying to add a "Black right-pointing pointer" html entity into my css :after content but to no avail.

I know you need to use a unicode value but I can't find one that works for this. This is the unicode number U+25BA and this is the HTML code ►

Pavlo
  • 43,301
  • 14
  • 77
  • 113
Dean Elliott
  • 727
  • 2
  • 13
  • 26

1 Answers1

3

You should use a backslash and a hex code:

i:after {
    content: "\25ba";
}

Obviously, this character must be present in the font used. Demo: http://jsfiddle.net/c29VS/1/

Pavlo
  • 43,301
  • 14
  • 77
  • 113
  • 1
    Alternatively, you can enter the character as such: `content: "►"`. You need to use UTF-8 and declare it properly for this to work, but that should be done anyway. – Jukka K. Korpela Oct 02 '13 at 10:52