Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 05h 50m 09s
Claim 50% off
Solved SP Page Builder Joomla 5 v6.6.2

Text Shadow

Asked by Robert 1 week ago Last activity 1 week ago

Attempting to add a simple text shadow to a Text Block element.

I've tried testing it by adding the following into the Style >> Custom CSS box of the Text Block element but getting no results after saving:

.my-shadow-text { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }

Regards

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
1 week ago · edited

then to use it
<p class="my-shadow-text"> Hello Shadow</p>

And it will work, but if inside addon, your class name should be more advanced.

For example .my-shadow-text p { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }

3 more replies

Ziaul Kabir Staff

Hello Robert,

Thanks for reaching out to us.

Your CSS looks correct. Please make sure to add the following CSS to the Text Block element's Style → Custom CSS section:

.my-shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

Also, make sure the my-shadow-text class is assigned to the text element you want to apply the shadow to.

Could you please share your website URL and let us know where exactly you are adding this CSS? This will help us inspect the issue and guide you further.

Best regards,

Robert Asked this
1 week ago · edited

Absolutely brilliant Ziaul & Paul... That was what I missed! I updated the beginning of my code line as noted
below and the shadow popped. As I noted in my OP, I added the custom CSS code but I then failed to add the
class= portion to the text code. Thank you very much!

Music Therapy Workshop

Regards

My updated line:
<p class="my-shadow-text" style="text-align: center;">

Ziaul Kabir Staff

It’s great to hear that your issue has been resolved.
If everything is working fine now, please mark the question as complete by accepting any of our answers.

Thank you!

Log in to reply.