views:

8737

answers:

6
+5  A: 

Use the hex code for a non-breaking space. Something like this:

.breadcrumbs a:before {
    content: '>\00a0';
}
John Millikin
+27  A: 

You have to use the escaped unicode :

Like

.breadcrumbs a:before {
    content: '>\00a0';
}

More info on : http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/

mathieu
A: 

The following may not be applicable as I can't get it working for anchor tags. This indents the first word of a paragraph:

.entry p:first-letter { margin-left: 2em; }

I don't think you answered this one and would be best off deleting it before someone votes negatively.
dlamblin
+1  A: 

Despite what you've been told \00a0 is not a perfect stand-in for   within CSS; If you try

content:'No\00a0Break'   /* becomes No਋reak*/

It takes the B into the hex escaped characters. The same occurs with 0-9a-fA-F The work around I've found is:

content:'No\0000a0Break' /* becomes No Break*/

Specifically using \0000a0 as  

dlamblin
A: 

There is a way to paste an nbsp - open CharMap and copy character 160. However, in this case I'd probably space it out with padding, like this:

.breadcrumbs a:before { content: '>'; padding-right: .5em; }

You might need to set the breadcrumbs display:inline-block or something, though.

Dare
Instead of pasting the nbsp, i'd stick to using an entity, so that it's clear to future maintainers that it's different to a space.
nickf
A: 

this is very useful! tnx guys!

Enios