Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: All
Jun 7, 1999

Add a Drop Shadow in IE4 or IE5

The latest versions of Internet Explorer (4.0 and 5.0) make it easy to add a dramatic drop shadow effect to regular text. Rather than creating bitmaps, try adding a style attribute and a filter. This code produces red text with a gray drop shadow:
<div id="mytext" 
     style="FILTER: shadow(color=gray,direction=145);  
           HEIGHT: 51px; LEFT: 10px; POSITION: absolute; 
           TEXT-ALIGN: center; TOP: 13px; WIDTH: 382px; 
           Z-INDEX: 200"> 
  <font color="red" face ="Arial" size="6">
  Welcome to my Page!
Ken Cox
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.