Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center

.wrapper {
  line-height: calc(100vh - 20px);
  height: calc(100vh - 20px);
  text-align: center;
  background: red;
}
.inner {
  background: green;
  color: white;
  padding: 12px;
  display: inline;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #center
ADD COMMENT
Topic
Name
5+4 =