Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how center div in css

.center{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #center #div #css
ADD COMMENT
Topic
Name
2+3 =