Here is what you should do in the CSS style, on the main div
display: block;
overflow: auto;
And do not touch height
More Related Contents:
- Canvas is stretched when using CSS but normal with “width” / “height” properties
- How to get div height to auto-adjust to background size?
- How to make a floated div 100% height of its parent?
- How to make the overflow CSS property work with hidden as value
- How to set height property for SPAN
- Overflow to left instead of right
- Set div height equal to screen size
- Issue when centering vertically with flexbox when heights are unknown
- Horizontal scroll in DIV with many small DIV’s inside (no text)
- overflow: hidden on div and body, different behavior
- Canvas is stretched when using CSS but normal with `width` & `height` attributes
- Make body have 100% of the browser height
- Select elements by attribute in CSS
- How to prevent long words from breaking my div?
- CSS margin adds space outside parent element [duplicate]
- Position: absolute and parent height?
- How do I force a DIV block to extend to the bottom of a page even if it has no content?
- make div’s height expand with its content
- Two divs, one fixed width, the other, the rest
- CSS: 100% width or height while keeping aspect ratio?
- blur of part of Background image with css
- Div width 100% minus fixed amount of pixels
- What’s the maximum pixel value of CSS width and height properties?
- Two Divs next to each other, that then stack with responsive change
- Make HTML5 video poster be same size as video itself
- How to align a div to the top of its parent but keeping its inline-block behaviour?
- How to push a footer to the bottom of page when content is short or missing?
- How to add bordered triangle over a div tag
- CSS Floating Divs with different height are aligned with space between them
- Flexbox layout with two equal height children, one containing nested flexbox with scrolling content