Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to align a content at the middle of a div with translate

.div{
 position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
 
PREVIOUS NEXT
Tagged: #align #content #middle #div #translate
ADD COMMENT
Topic
Name
2+2 =