Answers for "how to align an element center"

CSS
1

center css elements

body{
  display: grid;
  place-items: center;
}
Posted by: Guest on November-11-2020
0

how to center a div

.container {
  ...
  display: flex;
  justify-content: center;
}
Posted by: Guest on February-02-2021

Code answers related to "how to align an element center"

Browse Popular Code Answers by Language