Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

position absolute center

.parent {
  	height: 100vh;
}

.child {
    position: absolute;
    top: 50%;  
    left: 50%; 
    transform: translate(-50%, -50%);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #position #absolute #center
ADD COMMENT
Topic
Name
7+8 =