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
Post a Comment