Answers for "align header to center css"

CSS
0

center h1 css

h1 {
    width:500px;
    margin: 0 auto;
    background: gray;
    text-align: center;
}
Posted by: Guest on May-09-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
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020

Browse Popular Code Answers by Language