<div class="card"> <div class="boxshadow"></div> <div class="main"> <div class="top"></div> <div class="left side"></div> <div class="right side"></div> <div class="title">TITLE</div> <div class="button-container"> <button class="button"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke="red" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect> <path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path>
.card { position: relative; height: 300px; width: 230px; } .card .boxshadow { position: absolute; height: 100%; width: 100%; border: 1px solid red; transform: scale(0.8);