I also struggled with the image across all breakpoints!
-
What if you use padding to occupy the space the image would've taken if it was in-flow? I.e.
<div class="intro-left" style="padding-right: 50rem;">
(and remove the setwidth
). -
I think this is an "impossible" problem. If the image shrinks, it won't be the intended size. If the image doesn't shrink, it'll break the layout and cause overflow. I'd set a minimum width on
.intro__img
, so that it stays visible for the user. -
.intro-left
and.intro-content
has a setwidth: 34.2rem;
, so they're not allowed to shrink.
Marked as helpful