Site logo

Archived topic

How to add shadow to elements text

1 reply · Started by Daniel on March 7, 2020

Viewing posts 1–2 of 2

Hi guys, I searched for a few previous threads about this, I tried several different codes but none of them really worked for me.

I did manage to add shadow to my H1 text inside the hero elements but none of the codes worked on the actual paragraph.

How do I do this?

Hi there,

your current CSS is being applied, its just the shadow effect is too fine to be noticed.
If you adjust it slightly like so you will see it:

.hero-text {
    font-size: 22px;
    text-shadow: 2px 2px 2px rgba(20, 20, 20, 0.6);
}
This archived topic is closed to new replies.