on-internet
← Community

How can I add white space before an element's content using CSS?

Stack Overflow ·

None of the following code works: p:before { content: " "; } p:before { content: " "; } How do I add white space before an element's content? Note: I need to color the border-left and the margin-left for semantic use and use the space as a colorless margin. :)

Comments

Sign in or sign up to comment and upvote.

No comments yet.