On 9/19/11 7:37 AM, Brahm Friedlander wrote:
Using the viewport and ul,li,I've managed to create a web site in
which there is a display of thumbnails on the left and a larger jpg
on the right with description below large jpg. Clicking on a
thumbnail triggers the corresponding larger image on right.
My question is how do I center the larger image in the available
space on right? Now all large right images default to left border of
available space leaving a large unoccupied space to the right of some
images.
Try:
figure img {
display: block;
margin: 0 auto;
}
where "figure" could be some other selector, depending on what you use
in your markup to contain the image.
--
Cordially,
David
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/