Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center with css

.parent {
  position: relative;
}
.child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
 
PREVIOUS NEXT
Tagged: #center #css
ADD COMMENT
Topic
Name
6+5 =