...

View Full Version : Dropped shadow effect and PNG and GIF



Williebee
04-26-2010, 09:43 AM
Hello

I want a coloured text box on my site and initially just had a flat image, but decided to investigate the possibility of adding a dropped shadow effect. I used Inkscape and produced a PNG file.

This showed up fine on Firefox and IE on my machine, but various internet articles state that IE doesnít always handle PNG files correctly.

As an alternative, I decided to revert back to the plain GIF file box, using a conditional comment in the code.

Any suggestions, as the shadow effect is far better. I tried to save a dropped shadow image as a GIF but it didn't work.

The result is here

http://williebeetest.99k.org/vector.html


Many thanks

VIPStephan
04-26-2010, 04:34 PM
IE handles PNG just as well as other modern browsers. Only IE 6 and earlier versions didn’t support alpha transparency on PNGs. You can safely use PNG with alpha tranparency if you don’t care about IE 6. And if you have a solid background you don’t even have to use any transparency so it would even look OK in IE 6. In any case, PNG is preferred over GIF.

Williebee
04-27-2010, 02:55 PM
IE handles PNG just as well as other modern browsers. Only IE 6 and earlier versions didnít support alpha transparency on PNGs. You can safely use PNG with alpha tranparency if you donít care about IE 6. And if you have a solid background you donít even have to use any transparency so it would even look OK in IE 6. In any case, PNG is preferred over GIF.

Thanks for that Stephan

Yeah, I was suprised when it worked OK for me on IE, but I have IE7.

The best way then, would be for me just to use the following conditional comment

<!--[if lte IE 6]>
style 2
<![endif]-->

That way, the majority of folk (about 90%)will see the dropped shadow effect

thanks again for your reply !

Brian

Taylor24Smith
04-28-2010, 06:36 AM
Well I am in a need of help, I want to add this cool drop shadow effect to a website I am building, but unfortunately for me I can't seem to get it right. I want to apply this drop shadow effect to this website.

Williebee
04-30-2010, 09:34 AM
Well I am in a need of help, I want to add this cool drop shadow effect to a website I am building, but unfortunately for me I can't seem to get it right. I want to apply this drop shadow effect to this website.

Hi

I used Inkscape, a free vector drawing program, obtained from http://www.inkscape.org/

just draw a shape, then copy it and color this copy black or gray. Put under the original layer and add a slight blur, then move it right and down slightly.

If I can do it, everybody else can as I've just started this whole web design thing a couple of months ago.

Regards !


ps I had a great holiday in Toronto and Cleveland House nearby many years ago. You are lucky to be living in such a beautiful country.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum