.parentContainer { overflow: hidden; height: value in px; } .parent { overflow-x: scroll; block-size: calc(100% + 25px); } .childImage { height: 100%; // restore height block-size: calc(100% - 25px); }