<div class="center">
  <div class="heart">
  </div>
</div>
.heart {
  background-color: #fff;
  width: 50px;
  height: 50px;
  position: relative;
  transform: rotate(45deg);
}




// 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.