I just was wondering why in CSS when using unicode I can not put space after unicode :
This is my test :
div {font-size:50px;}
div:before, div:after {color:green;}
.a:before {content: 'text-before \2022 ';}
.b:before {content: 'text-before • ';}
.c:after {content: ' \2022 text-after';}
.d:after {content: ' • text-after';}
<div class="a">A-Hello</div>
<div class="b">B-Hello</div>
<div class="c">C-Hello</div>
<div class="d">D-Hello</div>
So you will see B
and D
using non-unicode is allowed to add space after char. But when using unicode (A
and C
) spaces is gone.
.x:before {content: '\2022 ';}
<div class="x">Hello</div>
So question is : Why and how to add real space-char (as we press space-bar on keyboard) after uncicode ? (Without using margin padding)