Adding a drop shadow effect
elmani
Registered Users Posts: 97 Big grins
Hi all,
I'd like to add a drop shadow effect to the thumbnails that are shown when someone views a gallery. Any idea how I do this??
Thanks in advance!
0
Comments
Looks like you got it figured out.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks for responding. Yes, I managed to find some code late last night. There is one slight issue which is the right hand edge of the thumbnails on the right hand side gets cut off. Any thoughts ? Thanks
Try adding
margin: 3px 9px 0 0;
to the drop-shadow code you're using.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Really appreciate the help - unfortunately that didn't work. I don't know if it helps, but the code I'm using is:
.sm-gallery .sm-tile {
box-shadow: 3px 3px 6px #171207;
}
Are you sure you added it here:
It worked for me.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Must have done something wrong before, just tried it again and it works perfectly! Thanks!!!
Kase
www.barefootedintherain.com
Won't know where I'm going 'til I get there.
http://kasejameson.smugmug.com
Update: So it turns out, using a fixed layout page will clip the outer left and right edges of a drop shadow. Changing margins and widths don't work, either. They were helpful. It's just an unfortunate casualty of the layout I'm using. If I stuck with a Stretchy layout, it would be fine.
Kase
barefootedintherain.com
Won't know where I'm going 'til I get there.
http://kasejameson.smugmug.com
I'm not seeing a drop shadow on your home page. Did you decided to remove it?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
> @beardedlogic said:
> I think I got it. It's cutting the shadow off on the right side of the gallery, so help would still be welcomed but tinkering on it for a couple hours finally yielded some fruit.
>
>
>
> Update: So it turns out, using a fixed layout page will clip the outer left and right edges of a drop shadow. Changing margins and widths don't work, either. They were helpful. It's just an unfortunate casualty of the layout I'm using. If I stuck with a Stretchy layout, it would be fine.
>
>
>
> Kase
>
> barefootedintherain.com
>
>
>
>
>
> I'm not seeing a drop shadow on your home page. Did you decided to remove it?
It's back on now! Sorry.
Won't know where I'm going 'til I get there.
http://kasejameson.smugmug.com
Remove this:
Use this instead...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
You, sir, are genius! Thank you! it lifted my spirits greatly when I saw you come back with a powerhouse solution! Only thing is, the photos aren't justified, but I can live with that. Thank you again!
Kase
Won't know where I'm going 'til I get there.
http://kasejameson.smugmug.com
Glad to help!
It really is justified if you look at the whole gallery. Also, you have a
margin-right: 35px
that isn't helping. But generally the way the galleries are designed, that's probably as close to being centered, with drop-shadows, as you're going to get.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I'll look into that margin-right. I'm getting happier with the site. What are you thoughts? I would appreciate a critique from a pro!
Won't know where I'm going 'til I get there.
http://kasejameson.smugmug.com