Reply
External CSS - Image Drop Shadows
Old 02-21-2007, 07:47 PM External CSS - Image Drop Shadows
Average Talker

Posts: 16
Hey guys. I've been searching for an external CSS drop shadow code to impliment to my website. Images are a big part of my website and I think they look so boring without drop shadows. Also, my background is black so I'd need drop shadows that would show on black. Any help or links would be greatly appreciated, thanks.
golfiscool is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-21-2007, 10:35 PM Re: External CSS - Image Drop Shadows
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Have a look at my photo galleries, and while you're there, do a "view source" on them. This probably isn't your ideal solution, but it will point you in the right direction.

And they bring up an important point. Right now, your background is black, but what happens if you decide to change that at some point in the distant future? If you poke around some of my galleries, you'll see that I'm still working on fixing that - old background colors built into the drop shadow images. If it's at all possible you might ever want to change your background color, you should implement your shadows in a way that will tolerate that.

If your images are mostly the same size, you can make a frame image that's mostly transparent, and then jump through hoops to make IE 6 understand. On the other hand, there are dozens of CSS drop shadow tutorials on the web. I don't have any URLs off hand, because I decided not to go that route; the few I looked at demanded as many as six divs per image.

Anyway, I hope this was helpful rather than confusing the situation more.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 02-22-2007, 12:48 PM Re: External CSS - Image Drop Shadows
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Maybe this:
http://alistapart.com/articles/cssdropshadows

All you would have to do is change the shadow color to fade from white to black.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 02-28-2007, 11:54 AM Re: External CSS - Image Drop Shadows
Angelosanto's Avatar
Ultra Talker

Posts: 440
Name: Danny Angelosanto
If you put the images in a certain class of div tag, you can then modify tht div tag to turn it into a shadow:

1. use 'position:relative' and then 'top:5px;left:5px'
This will place it in a shadow position

2. give the div tag a background color (if you want an actual shadow then obviously a really dark grey that fades would be good)

3. if you have any problems with things being in the wrong order, then use 'z-index' to put it right.

Hope that was useful!
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 02-28-2007, 02:13 PM Re: External CSS - Image Drop Shadows
LadynRed's Avatar
Super Moderator

Posts: 6,557
Location: Tennessee
Quote:
3. if you have any problems with things being in the wrong order, then use 'z-index' to put it right.
The only problem with that is z-index only works for absolute or relatively positioned elements.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-28-2007, 04:49 PM Re: External CSS - Image Drop Shadows
Angelosanto's Avatar
Ultra Talker

Posts: 440
Name: Danny Angelosanto
Quote:
Originally Posted by Angelosanto View Post
1. use 'position:relative' and then 'top:5px;left:5px'
This will place it in a shadow position
Isn't that what I said to use though?
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 02-28-2007, 05:55 PM Re: External CSS - Image Drop Shadows
LadynRed's Avatar
Super Moderator

Posts: 6,557
Location: Tennessee
Oops.. sorry, -- yes you did. My bad.... looonnnngg day
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to External CSS - Image Drop Shadows
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14704 seconds with 12 queries