It is necessary that when you hover over one block, a second block appears at the bottom and they have a common stroke.
.item { width: 220px; height: 300px; margin: 10px 3px; float: left; position: relative; } .item:hover .item_inner { position: absolute; top: 0; left: 0; z-index: 10; background: #fff; box-shadow: 0 1px 14px rgba(0,0,0,0.3); height: 100%; } .item_param { display: none; text-align: left; padding: 0 5px; margin: 10px 0; background-color: #f3f3f3; } .item_inner{ width: 100%; height: 100%; position: relative; padding-bottom: 5px; border: 1px solid green; } .item_inner:hover .item_param { display: block; top: 100%; width: 100%; position: absolute; }
<div class="item"> <div class="item_inner"> TEXT <div class="item_param"> <p>info</p> <p>info</p> <p>info</p> <p>info</p> <p>info</p> <p>info</p> </div> </div> </div>
inherit
property you can solve the problem - Invision