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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -