First of all, with lightbox 2, at least on my monitor, the pop up appears in the upper portion of the screen as compared to the original lightbox. But, I can see how with large images and lower res monitors, even this would not be enough room. However, one should balance one's natural desire for size with consideration of the various resolutions currently in use. 800x600 is still not that uncommon. A 600px high image won't fit on a screen like that unless there is absolutely nothing else but the image, no browser, no taskbar, etc. With all that in mind, I have found that the pop up positioning is most easily influenced in the css by adjusting this selector's property/value pairs:
#outerImageContainer
For example, to move it up, give it a negative top margin:
Code:
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
margin-top:-20px;
}
Similarly, you could move it toward the upper left corner like so:
Code:
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: -20px auto 0 50px;
}
But, whereas the:
#imageDataContainer
will follow it vertically, if it is moved horizontally, the #imageDataContainer must also be moved a similar amount:
Code:
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto 0 50px;
line-height: 1.4em;
}
Bookmarks