Answers for "center item vertically and horizontally"

CSS
1

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;
}
Posted by: Guest on May-01-2021

Code answers related to "center item vertically and horizontally"

Browse Popular Code Answers by Language