I currently have three images placed horizontally one after another on a webpage. When the user zooms in sufficiently, the page layout bumps the third image to be placed below the first two images. I would prefer that the image simply ‘disappears’ into the edge of the page so that the layout is maintained. How can I specify this behavior? Thank you.
I currently have three images placed horizontally one after another on a webpage. When
Share
Put into container and prevent wrapping
It is of course wiser to use CSS classes instead of inline styles.
And if you’d like to keep container unscrollable, you can set its
overflowstyle tohidden.Here’s a JSFiddle example that sets both styles on containing
divelement so third element (insetad of images I’ve usedspanbut that’s not relevant) simply disappears over the edge. If you try to setspanwidth to fixed pixel size and zoom the page in you will see that elements just disappear over the edge.