The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Css | image Vertical Reply To: Css | image Vertical


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.