Answers for "how to center things in html"

1

center p html

<p style="text-align: center">this is centered</p>
Posted by: Guest on August-21-2020
1

header center

div {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: blue;
}

text {
  background: orange;
}

<div>
   <text>Centered horizontally and vertically</text>
</div>
Posted by: Guest on December-03-2020

Code answers related to "how to center things in html"

Browse Popular Code Answers by Language