/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Here is a simple way to give shadow to a text using css. HTML: <div id="wrapper"> <span class="firstlayer">Text with shadow using CSS</span> <span class="secondlayer">Text with shadow using CSS</span> </div> CSS: .firstlayer { font-size: 18px; font-weight: bold; color: #aa0000; position: absolute; top: 120px; left: 20px; z-index: 1; } .secondlayer { font-size: 18px; font-weight: bold; color: #aaa; position: absolute; top: 122px; left: 22px; z-index: 0; }
URL: http://htmlcsstutorials.blogspot.com/2009/06/how-to-give-text-shadow-using-css.html
Comments
