Lightbox-boxes slightly too small
Cynaes
Joined: 2007-10-11
Posts: 7 |
Posted: Fri, 2007-10-12 18:28 |
Well, after I finally got Lightboxes to work (and I love 'em), I only got two small problems left. 1) The Lightbox is too small along the right edge. (http://www.emphyrio.net/wpg2) I'm using wordpressembedded, the most recent (at this writing) svn snapshot (version number in the plugin directory says it's 1.0.0). Thanks for any help you can give |
|
Posts: 62
Issue 1: It kinda looks like you have a image frame around your photos and lightbox is not compensating for the css image frame (It wouldn't becasue it creates the lightbox based on the image size and lightbox probably doesn't know the css image frame even exists. Can you turn off all image frames in a gallery and test my theory?
Issue 2: I had this same issue when I tried to "lightbox" the sirux theme. (This was a while ago) and is most definately a G2 and theme based issue... What version of Gallery2 are you running? If it's the latest version then we might have to update the wordpress embedded theme...
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/
Posts: 7
1) I'm only using frames for albums and element pages, not for the display of single pictures. However, I did disable all frames to test your theory, but things didn't change at all. I'll leave them disabled for now.
2) I don't know where to look up the exact version number (couldn't find it in the admin menu), but I did a full update on wednesday or thursday. So unless there's been a new version since then, I'm pretty sure that I'm running the latest g2. I didn't update from WPG2 3.0.1 to 3.0.2 however, because I didn't have any of the problems detailed in the release notes, and things were running fine. I am running the latest version of the embedded theme though (not sure if I mentioned this in my earlier post).
Thanks for your help, and sorry that I cannot give you more detailed answers, I'm a complete newb when it comes to php and programming.
Posts: 62
No worries, I'll take a more in depth peek tonight, when I have more free time...
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/
Posts: 7
Any news?
Posts: 62
It took me a little bit but I found it... Just as I thought it was a css "frame" around the image. Look at the css for your theme and find the following css:
/* images */
img {
border: 1px solid #DDD;
padding: 5px;
background-color: #FFF;
}
Now change the border color to 000 and save. Then refresh the page and you will see the border in the lightboxed image black. What you need to do style the images in your gallery VERY explicitly... something like this might work (I'm guessing, you will have to test)
.giItemCell img {
border: 0px;
padding 0px;
}
Check out this post to get some usefull tools to accomplish this: http://gallery.menalto.com/node/70126
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/
Posts: 7
Whew, looks like you've had to invest quite some time. Thank you for helping out! I'm headed for bed now, but will look into it later today
Many thanks!
Posts: 62
No worries, we are happy to help...
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/