add spaces in content :: before code example Example: space in css :before :after p:before {content:"\00a0";} p:after {content:"\00a0";}