1
This text shadow tutorial will demonstrate some CSS that will show you how shadows can be applied to standard text in you HTML. The CSS property text-shadow is one of the easier and more versatile CSS3 properties and you can do more with it than just shadow text. By using text-shadow you can have the appearance of engraved text, glowing text, blurred text and even text that is on fire! So enough with the chat lets get to some examples of text-shadow.
If you're viewing this on Internet Explorer I'm afraid you're not seeing the text shadow effect. It's a shame really because it's quite impressive. Might we suggest you use a different browser like Firefox or Chrome and while we're on the subject of browser compatibility we should mention the text-shadow property is compatible with Firefox 3.5+, Chrome 2+, Opera 9.5+ and Safari 1.3+
The Syntax
text-shadow: 7px 5px 3px #CCC;
As we said earlier in the tutorial, the text-shadow property is one of the most versatile properties of CSS3 The following are some fun examples, albeit mostly useless, but maybe they will inspire you to do other creative things in web design with text-shadow other than just shadowing text.
This is Engraved Text
The Syntax
font-size: 48px;
text-shadow: text-shadow: 0px -1px -1px #fff;
I'm on fire!
The Syntax
color:#fffddb;
font-size: 48px;
text-shadow: 0 0 4px #fffdd1, 0 -5px 4px #fff79e, 2px -10px 6px #fff200,
-2px -15px 11px #ffbf00, 2px -18px 18px #ff0000;
Blurred Text
The Syntax
color:#fff;
font-size: 48px;
text-shadow: text-shadow: 0px 36px 6px #666;
Leave us a comment and we'll see if we can answer your questions. We might be a web design company in Shenzhen, China, but we're always online and happy to help the developer community.
Let's get into contact so you learn more about us and we can create solutions for you!