Improve company productivity with a Business Account.Sign Up

x
?
Solved

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

Posted on 2007-11-15
8
Medium Priority
?
299 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 1050 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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
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 450 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…

595 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