Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to center vertically and horizontally in css

.<your-outer-div> {
  display: flex;
  justify-content: center;
  align-items: center;
}
Source by programmersportal.com #
 
PREVIOUS NEXT
Tagged: #center #vertically #horizontally #css
ADD COMMENT
Topic
Name
2+1 =