I have a reset button inside two nested div elements. If I set the button’s display property to block, the inner div wraps nicely around the button. However, if I leave the button as inline, the inner div stretches vertically.
I understand that block elements cause a line break before and after, but this alone doesn’t explain to me this behavior with the spacing.
I appreciate any insights as well as resources you could point me towards!
I’ve posted the [full code