<div class="one-div"></div>
.one-div { width: 8em; height: 12em; background-color: rgb(69, 152, 201); position: relative; display: flex; align-items: center; justify-content: center; } .one-div::before { content: "One";