Answers for "how to make a container items horizontally cenyer"

CSS
44

css center image

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on November-28-2019
2

vertical align css

/*
For a flexed item you can you align - items to center content vertically
you can use justify content to center horizontally
*/

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}
Posted by: Guest on December-15-2020

Code answers related to "how to make a container items horizontally cenyer"

Browse Popular Code Answers by Language