h1 { margin-bottom: 10px; } h2 { margin-bottom: 20px; } .button-read { color: #ddd; background: none; font-size: 30px; border: 5px solid #ddd; transition: 1s; } .button-read:hover { color: #fff; border: 5px solid #fff; transition: 1s; } .last-bublication { padding-top: 100px; padding-bottom: 100px; } <div class="container last-publication"> <div class="raw"> <h1>Latest News</h1> <h2>Description to last publication</h2> <button class="button-read">Прочитать</button> </div> </div> Horizontal scrolling appears when I add the padding-bottom property to the parent last-publication .
Why is this happening?
With padding-top everything is fine.
It also appears if the button margin-bottom: 100px;
How to fix it and why it appears?
Only without overflow-x crutch, please.