This is because you are using float for the images and cards, which doesn't automatically adapt well to responsive designs. you should replace the float-based layout with a flexbox or grid layout