Can't Prevent Nested Div's from Overflowing when using Percent Sizes and Padding in CSS?
- by viatropos
I want to be able to layout nested divs with these properties:
width: 100%
height: 100%
padding: 10px
I want it to be such that, the children are 100% width and height of the remaining space after padding is calculated, not before. Otherwise, when I have a document like the below example, the child makes the scrollbars appear. But the…