Home › Forums › CSS › Css | image Vertical › Reply To: Css | image Vertical
October 4, 2017 at 11:29 pm
#260978
JeroenR
Participant
The property overflow only works on an item with a height set. Your div with class ‘imgV’ has the property overflow set, but it doesn’t have a height. So that’s why it doesn’t work.
And overflow should be set on the container, not on the item itself, so you shouldn’t set it on the image itself.
So make sure your containers have the same dimensions in all screens, then the images will have those dimensions as well.