.promo__display { display: inline-block; margin: 0px; } .promo__doit { padding-left: 26px; margin-bottom: 32px; margin: 0px; } <div class="promo__doit promo__display"> <h1 class="promo__h1">DO IT NOW</h1> <h4 class="promo__h4">Or You Never Get It Back</h4> </div> The height of the block is highlighted in blue. From all the manipulations I found out that if I remove display: inline-block; then the height of the block will be in content, but did not understand why the display affects the height so much, did not notice it before, what is the reason?
