I have a grid of two elements - childa
and childb
.
childb
has its own inside
child which I cannot center vertically
and place bottom vertically
.
Any help?
.parent {
display: grid;
height: 170px;
background: black;
grid-template-columns: 50% 50%;
grid-gap: 10px;
}
.child {
background: gold;
height: 150px;
margin-top: 10px;
}
.inside {
width: 80%;
background: red;
margin: 0 auto;
}
<div class='parent'>
<div class='child childa'>lorem</div>
<div class='child childb'>
<div class='inside'>
sdfsdfsdfd<br> adfdsfsdds
<br>
</div>
</div>
</div>