Quote:
Originally Posted by gmayor
The table here fits the width between the margins so the column width will be determined by the (selected) number of columns that will fit between the current margins. Images will adapt to the width of the cells and the height is determined by the aspect ratio of the the imported image.
|
That's essentially the same as the code in the link I posted does, except that mine also invites the user to nominate the row height. Consequently, not only is the width constrained but so too is the height - useful if you're working with images using a mix of landscape and portrait formats.