close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Lightbox Question

Thread began 1/17/2010 3:40 pm by shadow329043 | Last modified 1/18/2010 3:45 pm by neilo | 903 views | 4 replies |

shadow329043

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

Sign in to reply to this post

neilo

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?

Sign in to reply to this post

Justin Nemeth

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

Sign in to reply to this post

shadow329043

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

Sign in to reply to this post

neilo

Cheers Shadow, and apologies both. I thought that was what was being asked for. A well of useless information, me.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...