Answers for "how to move something to the center in html"

CSS
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
2

center text in a html file

<tag class="" align='center'></tag>
Posted by: Guest on July-04-2020

Code answers related to "how to move something to the center in html"

Browse Popular Code Answers by Language