Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to horizontally and vertically center content in css

.container {
  min-height: 100vh; // height of the browser viewport
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
Source by scotch.io #
 
PREVIOUS NEXT
Tagged: #horizontally #vertically #center #content #css
ADD COMMENT
Topic
Name
2+3 =