I have my website in this situation: the thumbs of my gallery are ok when I change orientation to landscape, if the width is longer than the height. in a few words, if the thumb has a landscape shape, I can rotate the screen and the image fit it perfectly. Instead, for portrait pictures, height longer than width, it fits only if I use the mobile screen normally, in portrait mode. But if I rotate the screen, the height do not fit the screen completely and I see only a part of the image. I wish, instead, that the height is 100% and the width automatically adapt to it. This is my page to fix
http://www.paolobergomi.it/new-gallery/indoor-portraits/
My css code for all the mobile devices is the following one
@media only screen and (min-device-width: 20px) and (max-device-width: 991px)
.responsive1 {
width: 100%;
height: auto;
border-bottom: 1px solid #fff;
}
)
I tried to use (orientation: landscape) but it does not work., When i rotate the screen nothing changes, and the height still not fit the screen at 100% of it. Any tips to sort this out is well appreciated ;) Thans a lot. Paolo