There is a hidden content that appears in the block when a parent is hover. There is also some padding that also appears on hover. As a result, other blocks are shifted. How to make sure that they do not leave? Screen below.
Example of one block:
.content .hides { display: none; } .hides { position: relative; } .hides .fa-shopping-basket { background-color: #f15927; padding: 5px 10px; border-radius: 3px; color: #fff; margin-left: 23px; font-size: 15px; } .itempos { margin-top: 20px; margin-bottom: 40px; } .hides:hover { display: block; } .itempos:hover .hides { display: block; } .itempos:hover { border: 3px solid blue; padding-left: 0; padding-right: 0; } .itempos:hover .itemcont { padding: 15px; } <div class="col-md-2 itempos"> <div class="itemcont"> <div class="image"> <img class="img-responsive" src="img/pos1.png" alt=""> </div> <a href="" class="name">Диск сцепления ClutchNet (6-ти лепестковая металлокерамика с демпфером)</a> <a href="" class="category">Трансмиссия </a> <div class="price">8 600 руб. <span>9900 руб.</span> </div> <div class="hides"> <a class="podr" href="">Подробнее</a> <a class="crt" href=""><i class="fa fa-shopping-basket fa-1x" aria-hidden="true"></i></a> </div> </div> </div> 
.itempos:nth-child(6n+1) { clear: left; }.itempos:nth-child(6n+1) { clear: left; }if you don't want to bother with flexbox . Pseudo-class : nth-child - Konstantin Basharkevich