<div class="center">
  <div class="heart">
  </div>
</div>
.heart {
  background-color: #fff;
  width: 50px;
  height: 50px;
  position: relative;
  transform: rotate(45deg);
  
  &::before, &::after {
    content: "";
    width: 50px;
    height: 50px;
    background-color: #fff;
    position: absolute;
    border-radius: 50%;
  }
  
  &::before {
    left: -25px;
  }
  
  &::after {
    top: -25px;
  }
}




// Page Styles
body {
  padding: 5rem;
  background-color: #f44336;
  height: calc(100vh - 10rem);
}
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.