In your image, you place the addition outside the child. This is not the case. Filling adds the width of the element, so if you add a padding and give it a width of 100%, it will have a width of 100% + padding. For what you want, you just need to either add a padding to the parent div, or add a marker to the inner div. Since divs are block elements, they automatically expand to the width of their parent element.
Alex Jul 06 2018-11-11T00: 00Z
source share