Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to horizontally center in css

.<your-outer-div> {
  display: flex;
  justify-content: center;
  ('align-items: center' will allow you to vertically center too ;))
}
 
PREVIOUS NEXT
Tagged: #horizontally #center #css
ADD COMMENT
Topic
Name
8+9 =