Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a bigger stronger text shadow

Tags:

css

I am trying to replicate an image in css which should be possible. But the shadow / radius is way smaller and barely noticable with css. How can I increase the strongness / radius?

How I want it to be:

enter image description here

How it is with css (when I increase the radius it becomes barely noticeable):

enter image description here

My code:

text-shadow: 0px 0px 10px #fff;
like image 256
twan Avatar asked Feb 08 '17 09:02

twan


People also ask

How do I make text shadow more than CSS?

CSS Syntax Note: To add more than one shadow to the text, add a comma-separated list of shadows.

Can you have multiple text shadows?

By using a comma, we can specify multiple text shadows. Here we have created the first text shadow with the same color as th background to give a semi-3D effect.


1 Answers

If I understand your issue correctly, you just need to stack multiple shadows in order to achieve the desired effect:

h1 {
    color: red;
    text-shadow: 0px 0px 20px #fff, 0px 0px 20px #fff;
}

and a fiddle:

https://jsfiddle.net/4o6L4owd/

like image 191
Andy Holmes Avatar answered Oct 11 '22 23:10

Andy Holmes