unicode - CSS: how to add white space before element's content? -


none of following code works :

p:before { content: " "; } p:before { content: " "; } 

how add white space before element's content ?

note: need color border-left , margin-left semantic use , use space colorless margin. :)

you can use unicode of non breaking space :

p:before { content: "\00a0 "; } 

see jsfiddle demo

[style improved @jason sperske]


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -