0

How to vertically center text with CSS?

<div>
  Code Ratings
</div>
div {
  height: 100px;
  line-height: 100px;
  text-align: center;
  border: 2px dashed #f69c55;
}
RUN
add comment
Suggest a different solution or add another example