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 ;))
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #horizontally #center #css
ADD COMMENT
Topic
Name
3+3 =