New Lightbox Padding
Patrick B
Registered Users Posts: 16 Big grins
Hi Everyone,
Another quick question on the new Lightbox display mode.
Beautiful and clean but on some images, or all in this case, i would love to have some padding on the top and bottom (or all sides if thats better). Some images in the galleries are older and don't have the resolution to display nicely with the default "Fill" setting.
I looked around but it didn't seem possible to find a setting to change the behavior from fill to a maximum size. It would be nice if I could specify that it can fill up to a certain size.
Since I'm imaging that that's not possible I was wondering if anyone has had better luck finding the css where I can modify it so that their is still the fill function but adding top and bottom padding so their is some white space all around?
Any help would be appreciated.
Another quick question on the new Lightbox display mode.
Beautiful and clean but on some images, or all in this case, i would love to have some padding on the top and bottom (or all sides if thats better). Some images in the galleries are older and don't have the resolution to display nicely with the default "Fill" setting.
I looked around but it didn't seem possible to find a setting to change the behavior from fill to a maximum size. It would be nice if I could specify that it can fill up to a certain size.
Since I'm imaging that that's not possible I was wondering if anyone has had better luck finding the css where I can modify it so that their is still the fill function but adding top and bottom padding so their is some white space all around?
Any help would be appreciated.
0
Comments
The side-effect is that the transparent border will still be there, shrinking the image slightly, when the image isn't filling the window.
Please check out my gallery of customisations for the New SmugMug, more to come!
Thats what I thought but thanks for your solution. It looked like it would work but seems to be causing some issues. When I apply the css the transparent border seems to introduce an x and y background repeat on the image on the left and top of the image, as if they are tiling the background image in Lightbox. I tried to resolve this by setting the border from transparent to white. That looked like it was going to work like a charm but seems to be cropping the image by forcing it over in the same areas that its repeating in the left and top corner.
I'll play around with it and see if their is a way of fixing that, but thank you for the idea.
Please check out my gallery of customisations for the New SmugMug, more to come!
I tested in both Chrome Version 28.0.1500.95 and Firefox 22.0 on mac osx 10.8.4
Perhaps it also has something to do with where I implemented the Css, i placed it in the advanced field under the theme, as i assumed that was the correct location.
Please check out my gallery of customisations for the New SmugMug, more to come!
The site is public, here is the link http://www.susanhelmsphotography.com/
By the way, the image underneath your logo doesn't load for me. Is it coming from a Private gallery? Those are only visible when logged on, you'll need to move that photo to an Unlisted gallery for it to be visible.
Please check out my gallery of customisations for the New SmugMug, more to come!
Ah, that worked. Thanks so much.
As for the sidebar image - that's a bit odd. When logged out I can see it on all my browsers. It's in a public gallery and just the image is set to hidden (Other>People and Animals). The only place I am seeing that behavior, where it wont load is in my mobile browser (safari on the iphone 4s and 5), though when set to unhid the image it does load.
I had written about the issue on another thread where I had questions relating to the mobile site (http://www.dgrin.com/showthread.php?t=238903).
Perhaps I will try moving it to a public but unlisted gallery.
Thanks for all your help.
Please check out my gallery of customisations for the New SmugMug, more to come!