Lightbox Question
I integrated Power Gallery in my PowerCMS site and now I am working on modifying one theme - the grid with lightbox (light). Can I change the size of the lightbox and if so, how?
Shadow
I integrated Power Gallery in my PowerCMS site and now I am working on modifying one theme - the grid with lightbox (light). Can I change the size of the lightbox and if so, how?
Shadow
Do you mean the size of the overlay that opens when you click on the thumbnail?
You can resize it, but I think you would have trouble centering it. It currently (if I'm talking about the right thing) set to 100% width and 100% height, - but his measurement starts at top left of the screen and ends at the bottom right.
From gallery/css/slimbox/slimbox.css:
#lbOverlay {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #000;
cursor: pointer;
}
You could change the left and top values, and give it a set (or %) width, but you can not take into account peoples' screen resolutions and sizes. You would need a script like the auto-centering pop-up window script which reads the screen size and calculates top and left based on the calculated centre lnes. Maybe lightbox has some tech how tos?
The above css is for the entire page overlay, the slightly transparent black overlay. The size of the white overlay is determined by the large image size as defined in the gallery/grid_lightbox/index.php file. Take a look at this thread: showthread.php?t=8844. There are some instructions there on how to change the image sizes and update your gallery to use that size.
If you want to just change the style of the lightbox popup itself, I would use Firebug to inspect the popup, make a note of the css, and update the slimbox.css file accordingly. The black overlay should be ok as is since I would think you still want it to cover the entire page like it currently does.
-justin
You guys are such a well of knowledge! Thanks - that give me the info I need. Since I am doing a mod on an existing theme/template - I don't care if I trash it.....I will be able to recreate it ok.
Shadow
Cheers Shadow, and apologies both. I thought that was what was being asked for. A well of useless information, me.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.