Add drop shadow to main image on smugmug gallery??
rvrkids
Registered Users Posts: 21 Big grins
1. I've figured out how to add drop shadows to the thumbnail images in my smugmug gallery and I can get a drop shadow on the main/enlarged image container but my images vary in size and I want the drop shadow on the enlarged image and not the container. I can't figure out the CSS code to do this.
2. My thumbnails in the gallery are chopping off the top of some images...how do I make sure they are displaying correctly?
Can anyone help?
Thanks.
2. My thumbnails in the gallery are chopping off the top of some images...how do I make sure they are displaying correctly?
Can anyone help?
Thanks.
karenmclaughlinphoto.smugmug.com
0
Comments
My Website index | My Blog
Can anyone help me with CSS to add a dropshadow to my smugmug gallery main image ?? I can get a shadow on the container but my image sizes differ and I want the shadow on the image.
Hello --
I am still wondering if anyone can anyone can help me with the CSS code to add a drop shadow to the main/enlarged image in the smugmug gallery. I've been able to add the shadow to the container but the image sizes vary and I want the shadow on the image not the container which is sometimes larger than the image.
Please help!!
Thanks.
This code adds a drop shadow to the main image in SM style, but only on hover. I don't know how to make it automatically display without hovering over it.
Credit to Aaron Meyers in his customizations area.
"You miss 100% of the shots you don't take" - Wayne Gretzky
Just remove the ':hover' part.
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 miss 100% of the shots you don't take" - Wayne Gretzky
That code does work, and actually I've tried that before....only problem is it puts a shadow around all photos I have on the page and I have a photo being used as a sort of separator between my header and the body of the page (scalloped string). This code puts a shadow on that image too and it looks really weird. I was hoping to find a way to specify just the images in the smugmug gallery.....both thumbs and main enlarged image.
I had figured out how to do the tiles of the thumbs alone (even though that wasn't ideal).
Any ideas?? I did publish it this way so you could see what I was talking about with the shadow on my separator photo.
Thanks again for your help.
One thing I noticed, your Galleries page (http://karenmclaughlinphoto.smugmug.com/Galleries/) your photos are right-justified on my monitor. I'm pretty sure you want them centered.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
As for my gallery main page....with the 3 galleries listed....It looks centered on my screen but I know it looks different on other screens. I don't seen an option to center the gallery pages across the screen. I did have a left margin that was centering it on my screen but I just took that off and made the right and left 12px but now it is pushed up on the left side....not sure how to center these 3 galleries ??? Maybe I need CSS code for that too ???
Add 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
Now I have the other issue with my main gallery page not being centered on my screen. I don't see a way to center the 3 gallery pages. I originally did it by adding a large left margin so it looked good on my screen but then it didn't automatically center on other sizes.
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 use 'Firebug' a plugin/extension from Firefox so I can see "under the hood". It doesn't have to be text (obviously), it's just called that.
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.
highlighted. Looking up the line I find the widget number.
My Website index | My Blog
All widgets have a class name with a unique number.
My Website index | My Blog
So here is my screen capture from Firebug...
The line highlighted in blue is what was selected when I did inspect element between my gallery images and the line with the widget number is 5 lines above that. How do you know these 2 go together?
If this is too much teaching, please tell me and I will research and try to figure out on my own. I don't want to be too cumbersome here
The closing div for the widget would be straight down in line where it was opened.
If you click any "-" in front of each the div, it will close. "+' expands the div and everything in
it is exposed.
My Website index | My Blog