Community forum for knowledge and support

Updated 11 months ago

Extending an Image Beyond a Large Container Div Without Horizontal Scrolling

At a glance

The community member is trying to get an image to extend outside a "Large Container" div while avoiding horizontal scrolling when the browser window is small. The comments suggest trying various CSS techniques, such as resetting "position relative" settings, changing "overflow hidden" to "overflow auto", and adjusting the width of the image wrapper div. However, there is no explicitly marked answer, and the community member is still facing an issue with horizontal scrolling when the browser window is small.

Useful resources

Hi there. Stupid question but I'm trying to get this image to extend outside the "Large Container" div while also not getting a horizontal scroll when the browser window is small. Any ideas?

M
Q
11 comments

Would you mind sending a read-only link?

what are you doing working today... its a holiday!

haha no rest for the wicked my friend!

something like this or? If not, do you have a design to reference at all by chance?

Yes... thats exactly what I'm thinking. Just something to breatk outside of the grid to make it a bit more interesting.

reset all of the "position relative" settings to "position static" where I have the arrows. And then on the tab content 5 div, change from overflow hidden to overflow auto.

And then on the image wrapper div, increase the width by a percentage. Play around with this until you like it. On tablet/mobile breakpoints, adjust this width accordingly as well but generally, it scales down as the screen does.

You're the best! Thanks a million!

Hi Matt.... So I've done all that but now I get a horizontal scroll when the browser window overlaps the window. Is there a way to make it crop and bleed off the page when the browser window shrinks?

Add a reply
Sign up and join the conversation on Slack