If you are looking for translucent shadows, you can try using rgba values ββinstead of hexadecimal values. So it will be:
h1 { text-shadow: 1px 1px 1px rgba(0,0,0,.20); }
where the first three numbers are the RBG value (red, green, blue), and the fourth is the opacity (0 to 1). Thus, the above example is black with an opacity of 20%.
Also, the weird weight of the shadows seems to come from the blur value on text-shadow
. When I change it to 1px 1px 0
, it gives a more even shadow than 0px 1px 1px
. I do not know why.
user641656
source share