Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Enhancing the Design With CSS Text Shadows

Teacher Russell
Teacher Russell
16,873 Points

text shadows on google

I was practicing headers, using text shadows/radients, etc from the lessons, and had no problems. I had a title that looked cool when I opened it in Internet Explorer, and when I opened it in Google, the text-shadow was gone. Very strange. Anyone have any experience like that? I would expect Google to recognize text-shadows. Again, the text shadow was on IE, just the way I wrote it. The background and everything else was fine on Google. Just the text-shadow on my h1 was missing.

2 Answers

Hey Russell,

Can you post your css?

Hey Russell,

I would refer to the MDN documentation for the text-shadow property.

The issue here is that you're passing in five values. By removing 3px, for example, your text-shadow will re-appear.

Incorrect:

.example {
    text-shadow: -5px 5px 5px 3px #edefaa;
}

Correct:

.example {
    text-shadow: -5px 5px 5px #edefaa;
}

The structure is: offset-x | offset-y | blur-radius | color

Best, Jacob

Teacher Russell
Teacher Russell
16,873 Points

The other value was spread, I thought. It shows on IE. I guess I'm really wondering why it shows on IE and not on Google.

There is no spread value for text-shadow. https://www.sitepoint.com/mastering-css3-text-shadows/