Solved

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

Posted on 2007-11-15
8
291 Views
Last Modified: 2010-04-06
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
0
Comment
Question by:gabrielPennyback
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 20292851
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20293098
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
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 350 total points
ID: 20294529

#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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20294832
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 20296134
John,

You pasted the CSS twice instead of the HTML and the CSS.  There is no way I can help you.
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20296646
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
 
LVL 25

Assisted Solution

by:Rouchie
Rouchie earned 150 total points
ID: 20297226
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 20300813
>> 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question