Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #header #center
ADD COMMENT
Topic
Name
6+3 =