-
center align lightbox
Hey all,
In this portfolio section you can click on images, and they will pop up enlarged.
But the enlarged images do not show up aligned centered. Smaller images tend to show towards the left.
How come?
And when enlarged how can I get the arrow to be shown as a minimize icon?
Thanks for helping me out here!
-
Open the nivo-lightbox.css and add
Code:
margin-left:auto;
margin-right:auto;
I'm not sure about the arrow.
-
Thanks for your reply.
I added it here:
Code:
.nivo-lightbox-image img {
max-width: 100%;
max-height: 100%;
margin-left:auto;
margin-right:auto;
vertical-align: middle;
}
and here:
Code:
.nivo-lightbox-content {
width: 100%;
height: 100%;
margin-left:auto;
margin-right:auto;
}
But it doesn't seem to work.
Here's the full code.
-