Solved

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

Posted on 2007-11-15
8
289 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
  • 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now