working with 0.5px is a bad habit. try putting 1px on vertical and horizontal, and 2px on the blur factor.
or just use one shadow value:
text-shadow: 0 0 1px black;
working with 0.5px is a bad habit. try putting 1px on vertical and horizontal, and 2px on the blur factor.
or just use one shadow value:
text-shadow: 0 0 1px black;
I’m trying to solely display the outline of a text. Therefore my approach was to use text-shadow
.
text-shadow: .5px .5px .5px black, .5px -.5px .5px black, -.5px .5px .5px black, -.5px -.5px .5px black;
This works for Chrome, but not for Safari – in Safari, no outline will be displayed. Changing the values to 1
will solve the problem, but the outline would be too thick in my case.
How can I solve this problem for Safari and probably other browsers?
I would also try a leading zero:
@RobMoll Safari 4 was released 12 years ago.
Exactly what does half a pixel look like?
@Paulie_D It’s solely thinner than having 1px. That’s all.
“Changing the values to 1 will solve the problem, but the outline would be too thick in my case”
this is why I suggested to up the blur factor or combine all the shadow values