Solved

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

Posted on 2007-11-15
8
286 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

746 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

12 Experts available now in Live!

Get 1:1 Help Now