<div class="wrapper">
<div class="block"></div>
</div>
.block {
width: 200px;
height: 200px;
background: linear-gradient(90deg, rgba(184,238,174,1) 0%, rgba(148,233,206,1) 100%);
border-radius: 10px;
}
const blockEl = document.querySelector('.block');
blockEl.style.marginTop = `${blockEl.offsetHeight}px`
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.