Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using text-shadow in HTML email with inline CSS

Is it possible to use the text-shadow feature with inline CSS? I am trying to give my header a border, but nothing seems to work. I am writing this for an email template in an IT ticketing application, so I can't add a separate style sheet. It seems my options are limited. Maybe my syntax is wrong?

<h1 style="text-align: center">
<span style="font-family: Verdana">
<span style="text-shadow: -1px -1px #ffffff, -1px 1px #ffffff, 1px -1px #ffffff, 1px 1px #ffffff">
    Service Request Created
</span>
</span>
</h1>

Please let me know if what I am trying to do is even possible.

like image 893
gannolloy Avatar asked Mar 25 '16 17:03

gannolloy


People also ask

How do you add text-shadow using CSS?

CSS Syntaxtext-shadow: h-shadow v-shadow blur-radius color|none|initial|inherit; Note: To add more than one shadow to the text, add a comma-separated list of shadows.

Which CSS property is used to add shadows to the text?

The text-shadow CSS property adds shadows to text.

How do I cast a shadow in CSS?

A light source positioned above an element will cast a shadow below the element. Placing a light source to the left of an element will cast a shadow to the right. Placing multiple light sources to the top, bottom, left and right of an element actually casts no shadow at all!

How do you put a shadow on text in text?

Select the text or WordArt that you want to format. On the Format tab, under Text Styles, click Effects, point to Shadow, and then click the shadow style that you want.


1 Answers

This is not an inline issue. Email clients limit many CSS properties. Text shadow does not work on all popular clients: https://www.campaignmonitor.com/css/.

One solution is that you can make the text an image.

Also, inline style declarations should still end with semicolons.

like image 187
Maryann Bell Avatar answered Oct 13 '22 14:10

Maryann Bell