Tagged: Avia Gallery, image height
In the Avia gallery, the height of portrait-style images is much too high. This problem is described here but not answered:
On our site, the problem is illustrated here (I will give login credentials in the Private area):
http://www.jillscherart.com/jills-portfolio/scarves/a-la-tetris/
Is there some CSS code that would constrain the maximum height, but still keep the proportions of the image?
Hi sackerly!
Something like the gollowing would work?
.avia-gallery img[height=”1600″] {
max-width: 50%;
}
so actually, taking the images with height 1600 making the width smaller which also makes the height smaller.
Is that something that can work? U can adjust the size your self
Cheers!
Basilis
Thank you for the suggestion, but this code did not have any effect. I tried the CSS
.avia-gallery img {
max-height: 400px;
}
The image is now constrained in height, but it also fills the entire width and hense is srtretched horizonally and is distorted.
Is there a way to keep the proportions of the image intact, while constraining the height?
I stumbled across a possible solution, using a maximum image height:
.avia-gallery img {
max-height: 600px;
width: auto ! important;
}
However, is this the best solution, and is there a way to center the main image in the Gallery?