JSFiddle - React, Tailwind, and code Playground
by Kocsten
HTML
<div id="sakivtun" class="zornet_ru_laguntuk">
<div class="gtulomesanta"></div>
</div>
CSS
.zornet_ru_laguntuk {
margin: 64px auto;
width: 200px;
height: 200px;
background-color: #dedada;
text-align: center;
border: 1px solid;
border-radius: 6px;
box-shadow: 0 1px 12px 1px, 0 1px 12px #f5efef;
}
.gtulomesanta {
width: 50px;
height: 50px;
background-color: #e8ffe7;
border: 1px solid;
}
#sakivtun {
position: relative;
}
#sakivtun .gtulomesanta {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}