+ 2

How to make a transparent text, but leave a shadow of the text?

30th Jun 2019, 4:34 PM
Lord_Harold1538
Lord_Harold1538 - avatar
4 Respuestas
+ 4
text-shadow can't work with transparent text, since it just create a layout behind the text. use webkit-text-stroke https://code.sololearn.com/W5FYihk9443T/?ref=app
1st Jul 2019, 1:29 AM
Calviղ
Calviղ - avatar
+ 6
Just combine both text shadow and color properties together .element { text-shadow: 1px 1px 3px black; color:transparent ; }
30th Jun 2019, 4:37 PM
Seniru
Seniru - avatar
+ 2
Thanks
1st Jul 2019, 1:55 AM
Lord_Harold1538
Lord_Harold1538 - avatar
+ 1
Thank you very much, but what if I need to leave a shadow just around the text?
30th Jun 2019, 4:45 PM
Lord_Harold1538
Lord_Harold1538 - avatar