187

Possible Duplicate:
Adding HTML entities using CSS content

#sitenavmenu-content-menu li:before
{
    content:"|  ";
}

I want to add a | and two spaces before each list item. However, for some reason it prints the word nbsp and not the space. Any ideas?

Community
  • 1
  • 1
NibblyPig
  • 51,118
  • 72
  • 200
  • 356

2 Answers2

361

This could be the answer you are looking for :

content: "|\00a0\00a0";
Chris Calo
  • 7,518
  • 7
  • 48
  • 64
agacode
  • 3,634
  • 1
  • 14
  • 2
-3

Fixed it by copying and pasting the non-breaking space from character map into my code editor.

NibblyPig
  • 51,118
  • 72
  • 200
  • 356