Page 1 of 1

Can i add a drop shadow or dark stroke to text?

Posted: Thu Jan 14, 2021 11:38 am
by panovrlover
Hi all, just a quick one from me -

Can I add a drop shadow or a dark outline/stroke to text? Can I do this with CSS? I have some white text on a clear background, but it's getting lost on light backgrounds.

Thanks!

Re: Can i add a drop shadow or dark stroke to text?

Posted: Fri Jan 15, 2021 1:16 pm
by Moritz.s
Hi,

just add css style to the text:

box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);

Re: Can i add a drop shadow or dark stroke to text?

Posted: Fri Jan 15, 2021 5:12 pm
by panovrlover
Thanks for the reply. Solved it by editing that css code to apply it to the text not the box.