How to add shadow to text | Using CSS
We can use the text-shadow property to add drop shadow to
text,Aadditionally CSS also provides the box-shadow property which can de used
set drop shadows to any element.
Here is an example on how text-shadow property works:
HTML Code:
<body>
<h1
id="withoutShadow">I Love CSS</h2>
<h1
id="withShadow">I Love CSS</h2>
</body>
CSS Code:
<style>
#withShadow{
text-shadow: 4px 4px 4px #666;}
</style>
This thing I love in among most of the designs, but it fails to work in IE 8 or below. :(
ReplyDeleteyep you're right IE has poor support for shadow effects
Delete