CSS drop shadow effects with images

This is a discussion on "CSS drop shadow effects with images" within the Web Page Design section. This forum, and the thread "CSS drop shadow effects with images are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 19th, 2007, 18:34
Junior Member
Join Date: Aug 2007
Location: England
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
CSS drop shadow effects with images

http://www.alistapart.com/articles/cssdropshadows

If an image has a jagged edge (say a gif with transparent background), can a drop shadow be added automatically with CSS to follow the edges of the image, without having to create a separate image for the shadow? Probably not.

If we're talking straight edges, can a drop shadow be added like in the above tutorial, that blends into a background texture, ie not a flat colour background? I need whatever shadow effect I use to blend in seamlessly (at least in modern browsers).

Jason
Reply With Quote

  #2 (permalink)  
Old Aug 26th, 2007, 21:33
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Re: CSS drop shadow effects with images

I am pretty sure the answer is no, because browsers render an image in box format (i.e. height and width). The only difference between an image with a jagged or curvy edge and an image with a straight edge is what is seen visually. The browser doesn't know the difference.
Reply With Quote
  #3 (permalink)  
Old Aug 26th, 2007, 22:01
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: CSS drop shadow effects with images

Quote:
Originally Posted by wickedmoon View Post
http://www.alistapart.com/articles/cssdropshadows

If an image has a jagged edge (say a gif with transparent background), can a drop shadow be added automatically with CSS to follow the edges of the image, without having to create a separate image for the shadow? Probably not.

If we're talking straight edges, can a drop shadow be added like in the above tutorial, that blends into a background texture, ie not a flat colour background? I need whatever shadow effect I use to blend in seamlessly (at least in modern browsers).

Jason
hmm how about putting the image as the background and changing the divs transparency and z-index?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Tags
drop shadow image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying a drop shadow design, IE won't let me. Henrik Hansen Web Page Design 7 Sep 26th, 2007 18:29
Expanding background drop shadow konnor5092 Web Page Design 1 Feb 22nd, 2007 07:39
drop shadow?? karloff Graphics and 3D 7 Aug 4th, 2006 14:08
Need help Short Cut Keys on Drop Shadow in Fireworks csun Graphics and 3D 1 Jul 7th, 2006 13:23
Drop Shadow w/fireworks liquid Graphics and 3D 4 Dec 24th, 2003 09:15


All times are GMT. The time now is 21:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43