<div class="container">
  <div class="content">
    <p>This is some centered content</p>
  </div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');

body {
  background-color: #d9d2e9;
  font-family: 'Major Mono Display', monospace;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  width: 300px;
  height: 30%;
  border: 5px solid #836cb7;
  background-color:aliceblue;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.