<div class="products-wrapper">
<div class="slider-product-item">
<div class="slider-product-item_wrap">
<div class="slider-product-item_wrap__title"><h1>Заголовок</h1></div>
<div class="slider-product-item_wrap__desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
</div>
<div class="slider-product-item">
<div class="slider-product-item_wrap">
<div class="slider-product-item_wrap__title"><h1>Заголовок</h1></div>
<div class="slider-product-item_wrap__desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</div>
</div>
</div>
<div class="slider-product-item">
<div class="slider-product-item_wrap">
<div class="slider-product-item_wrap__title"><h1>Заголовок</h1></div>
<div class="slider-product-item_wrap__desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</div>
</div>
</div>
<div class="slider-product-item">
<div class="slider-product-item_wrap">
<div class="slider-product-item_wrap__title"><h1>Заголовок</h1></div>
<div class="slider-product-item_wrap__desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</div>
</div>
</div>
</div>
.products-wrapper {
display: flex;
flex-wrap:wrap;
width:1200px;
}
h1{
margin: 0px;
}
.slider-product-item {
padding:0px;
position: relative;
height: 300px;
max-width: 550px;
width:100%;
margin: 10px 10px 20px 10px;
background-color: #ddd;
}
.slider-product-item_wrap{
position: absolute;
height: 50%;
top: 50%;
border:1px #cc0000 solid;
min-height:100px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.