Comments on: CSS Text Drop Shadow http://stansight.com/WordPress/2007/10/28/text-drop-shadows/ Coding for the Web - A JavaScript Resource Mon, 26 Jul 2010 12:53:41 -0400 hourly 1 http://wordpress.org/?v=3.0 By: Stan Slaughter http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-1419 Stan Slaughter Wed, 02 Jun 2010 16:50:44 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-1419 Glad it works for you. The funny thing is that I made this just for fun and have never had the opportunity to actually use it in a real project :) Glad it works for you.

The funny thing is that I made this just for fun and have never had the opportunity to actually use it in a real project :)

]]>
By: arb2040 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-1418 arb2040 Tue, 01 Jun 2010 08:12:01 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-1418 Thanks a lot! This was exactly what I needed. Works great in all browsers I've tried. Thanks a lot!
This was exactly what I needed.
Works great in all browsers I’ve tried.

]]>
By: Stan Slaughter http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-119 Stan Slaughter Fri, 08 May 2009 18:40:17 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-119 Doug, Strange, I'm using Firefox 3.0.10 and it looks correct to me. On this page the "White Impact font in DIV" phrase shows as white color with a shadow background and on the example page: http://www.stansight.com/DropShadow2.html the read and white colored fonts look correct as well. Doug,

Strange, I’m using Firefox 3.0.10 and it looks correct to me.

On this page the “White Impact font in DIV” phrase shows as white color with a shadow background and on the example page: http://www.stansight.com/DropShadow2.html the read and white colored fonts look correct as well.

]]>
By: doug http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-118 doug Fri, 08 May 2009 17:52:04 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-118 works in ie and chrome, but in ff3, it puts the shadow on top of the letters. this is pretty damn cool if it'll work in ff thanks! works in ie and chrome, but in ff3, it puts the shadow on top of the letters.

this is pretty damn cool if it’ll work in ff

thanks!

]]>
By: Arty Effem http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-54 Arty Effem Sat, 01 Mar 2008 16:58:05 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-54 It works OK but it's creating twice as many divs as required; try as you may, you cannot resolve half a pixel. It works OK but it’s creating twice as many divs as required; try as you may, you cannot resolve half a pixel.

]]>
By: Hal http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-51 Hal Fri, 01 Feb 2008 22:06:23 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-51 don't hate me, but... Stan..You are The Man! You're updated code works, and in all flavours of browsers too! Thanks! don’t hate me, but…

Stan..You are The Man!

You’re updated code works, and in all flavours of browsers too!

Thanks!

]]>
By: Stan Slaughter http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-50 Stan Slaughter Thu, 31 Jan 2008 12:21:20 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-50 The problem was in how I was calculating the increment color value so I made some changes to the DropShadow.js code that allow you to change the value of a variable to have a "lighter" starting gray color value. See if this works for you. The problem was in how I was calculating the increment color value so I made some changes to the DropShadow.js code that allow you to change the value of a variable to have a “lighter” starting gray color value.

See if this works for you.

]]>
By: Hal http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-49 Hal Thu, 31 Jan 2008 02:42:19 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-49 Hello again... Thanks for your quick reply to my question. However, when I applied your method to change the shadow colour, the shadow turned Green. If fact, any colour I choose to apply ends in aGreen shadow. The results are the same in IE7 & FF. Any suggestions? Hello again…

Thanks for your quick reply to my question.

However, when I applied your method to change the shadow colour, the shadow turned Green. If fact, any colour I choose to apply ends in aGreen shadow. The results are the same in IE7 & FF.

Any suggestions?

]]>
By: Stan Slaughter http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-48 Stan Slaughter Mon, 28 Jan 2008 03:15:13 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-48 Yes. If you look at the line <em>var color = parseInt('444444','16');</em> The 444444 is the starting grey color of the darkest shadow. To lighten the shadows start with a lighter color gray, like 666666, or 999999, etc.. <em>var color = parseInt('666666','16');</em> Whatever the color is, also be sure to change the line that calculates the color increament value from this: <em> var triple = parseInt(( parseInt('ee','16') - parseInt('<strong>44</strong>','16') ) / max_shadows,'10'); </em> to this: <em> var triple = parseInt(( parseInt('ee','16') - parseInt('<strong>66</strong>','16') ) / max_shadows,'10'); </em> or 99 if you choose to start with 999999, or AA if you choose to start with the color AAAAAA, etc.. Yes.

If you look at the line

var color = parseInt(’444444′,’16′);

The 444444 is the starting grey color of the darkest shadow. To lighten the shadows start with a lighter color gray, like 666666, or 999999, etc..

var color = parseInt(’666666′,’16′);

Whatever the color is, also be sure to change the line that calculates the color increament value from this:

var triple = parseInt(( parseInt(‘ee’,’16′) – parseInt(‘44‘,’16′) ) / max_shadows,’10′);

to this:

var triple = parseInt(( parseInt(‘ee’,’16′) – parseInt(‘66‘,’16′) ) / max_shadows,’10′);

or 99 if you choose to start with 999999, or AA if you choose to start with the color AAAAAA, etc..

]]>
By: Hal http://stansight.com/WordPress/2007/10/28/text-drop-shadows/comment-page-1/#comment-47 Hal Mon, 28 Jan 2008 01:42:33 +0000 http://stansight.com/WordPress/2007/10/28/text-drop-shadows/#comment-47 Is it possible to 'lighten' the color of the drop shadow? I've looked at the js and can't seem to see where it's possible. PS...thanks for the effort and a great code! Is it possible to ‘lighten’ the color of the drop shadow? I’ve looked at the js and can’t seem to see where it’s possible.

PS…thanks for the effort and a great code!

]]>