Producing HTML text with a shadow as good as a graphics program

I have asked a similar question about shadows on table borders, but I'm wondering if there is a way to produce text in an HTML page with a shaow to rival the look of shadows created in a grphic design program like Illustrator or Fireworks. Please take a look at this page:

http://www.microvention.com/Products/Coils/MicroPlexProducts/tabid/63/Default.aspx

I'm would like to get as close as possible to the look of the embedded text "MicroPlex Coil System," which was created in Fireworks.

Thanks!
John
LVL 1
John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?
 
Jason C. LevineNo oneCommented:

#mainText {
      clear: left;
      padding: 0px 0px 0 0px;
      max-width: 300px;
      position: absolute;
      width: 540px;
      top: 450px;
      left: 86px;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
      line-height: 16px;
      font-weight: bold;
}
 
.shadow {
      height: 1em;
      filter: Shadow(Color=#666666, Direction=135, Strength=5);
}

Open in new window

0
 
Jason C. LevineNo oneCommented:
0
 
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Hi Jason,

Thanks for the link, sounds like exactly what I need. But apparently I don't exactly where to place the code in my style definition. Here's what I have that doesn't produce the result: Please correct it for me.

Thanks,
John

#mainText {
      clear: left;
      padding: 0px 0px 0 0px;
      max-width: 300px;
      position: absolute;
      width: 540px;
      top: 450px;
      left: 86px;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
      line-height: 16px;
      font-weight: bold;
      .shadow {
      height: 1em;
      filter: Shadow(Color=#666666,       
                  Direction=135,
                  Strength=5);
}
      }

0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Hi Jason, it looks like it should work, it's the one for IE at the link you sent me, but I'm still not seeing shadows. I've included the HTML and CSS codes and maybe you'll see something there.

Also, I'm baffled by the fact that header1 seems to be dependent on mainPics, but mainText isn't dependent on mainPix. MainPix has a top at 159px and a height of 240px, and if I give header1 a top of 160px, it shows up at 400px. If I reduce the height of MainPics to 140px, header1 shows up at 300px. I don't understand why it does that when mainText isn't affected that way. I can ask this as a separate question if it's too complicated.

Thanks,
John
HTML CODE;
 
/* specific divs */	
#container {
	background: url(MPlx_bkgrnd_Feather_wLogo.jpg) no-repeat scroll left top;
	padding: 0;
	margin: 0;
	position: absolute;
	height: 813px;
	width: 696px;
	top: 0px;
	clip: rect(0px,auto,auto,auto);
 
	}
 
#mainPics {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	position: relative;
	height: 240px;
	width: 580px;
	top: 149px;
	left: 0px;
	background-image: url(file:///F|/Dreamweaver/Designamania/X-JCTestSite/MPlx_img1.jpg);
	background-repeat: no-repeat;
	margin-left: 60px;
}
#header1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	position: relative;
	left: 86px;
	width: 500px;
	height: 33px;
	top: 160px;
	font-weight: bold;
	color: #FFFFFF;
	}
	.shadow {
      height: 1em;
      filter: Shadow(Color=#666666, Direction=135, Strength=12);
}
 
#mainText {
	clear: left;
	padding: 0px 0px 0 0px;
	max-width: 300px;
	position: absolute;
	width: 540px;
	top: 450px;
	left: 86px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 16px;
	font-weight: bold;
	}
 
CSS CODE:
 
/* specific divs */	
#container {
	background: url(MPlx_bkgrnd_Feather_wLogo.jpg) no-repeat scroll left top;
	padding: 0;
	margin: 0;
	position: absolute;
	height: 813px;
	width: 696px;
	top: 0px;
	clip: rect(0px,auto,auto,auto);
 
	}
 
#mainPics {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	position: relative;
	height: 240px;
	width: 580px;
	top: 149px;
	left: 0px;
	background-image: url(file:///F|/Dreamweaver/Designamania/X-JCTestSite/MPlx_img1.jpg);
	background-repeat: no-repeat;
	margin-left: 60px;
}
#header1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	position: relative;
	left: 86px;
	width: 500px;
	height: 33px;
	top: 160px;
	font-weight: bold;
	color: #FFFFFF;
	}
	.shadow {
      height: 1em;
      filter: Shadow(Color=#666666, Direction=135, Strength=12);
}
 
#mainText {
	clear: left;
	padding: 0px 0px 0 0px;
	max-width: 300px;
	position: absolute;
	width: 540px;
	top: 450px;
	left: 86px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 16px;
	font-weight: bold;
	}

Open in new window

0
 
Jason C. LevineNo oneCommented:
John,

You pasted the CSS twice instead of the HTML and the CSS.  There is no way I can help you.
0
 
John CarneyReliability Business Tools Analyst IIAuthor Commented:
That's what I get for being in a hurry! Sorry about that ... Here's the HTML.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
 
</style>
<link href="microPlex2.css" rel="stylesheet" type="text/css">
</head>
 
<body>
	<div id="container">
		<div id="mainPics"></div>
			<div id="header1"><p>MicroPlex Coil System</p></div>
		 		<div id="mainText">
				<p>The MicroPlex Coil System (MCS) consists of an implantable platinum detachable coil attached to a fluid injection delivery system called a Delivery Pusher. The delivery system consists of a variable stiffness tube with a retention sleeve that attaches the Delivery Pusher tot the implantable coil. An introducer sheath assists in the delivery of the implantable coil into the microcatheter.<br>
			  	<br>
              	The MCS is available in 18- and 10-compatible systems that are compatible with various microcatheters. There are two basic configurations, Complex<br>
              	(3-dimensional) coils in various diameters and lengths to establish the initial framework, and Helical coils in various diameters and lengths for filling.</p>
				<p><br>
			  	<br>
				</p>
				<p>Framing: A complex coil with unmatched conformability<br>
				Filling: A full line of 10 and 18 sized helical coils offering superior deliverability <br>
				Finishing: The HyperSoft finishing coil is the softest and most flexible finishing coil available</p>
	  		</div>	
	</div>
</body>
</html>

Open in new window

0
 
RouchieCommented:
Jason the link you posted doesn't work in IE7.  The final example is cut off and partly hidden.

Is that because they stopped all the css hack trickery from being ignored in version 7?

gabrielPennyback,
Shadows are something I've wanted to do for ages but each solution is messy.  The good news is that CSS v3 will support shadows (http://www.w3.org/TR/2003/CR-css3-text-20030514/#text-shadows)
The bad news is that it will probably take Microsoft 50 years to incorporate CSS3 correctly into IE
0
 
Jason C. LevineNo oneCommented:
>> Is that because they stopped all the css hack trickery from being ignored in version 7?

Possibly.  The IE only solution on that page works in 6 and 7 for me. I get mixed results in firefox.

John asked if it was possible.  It is.  It's not a good idea, but that's a different question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.