Answers for "css set container center"

CSS
89

center a div in css

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on September-09-2020
1

center div css

.container {
  display: grid;
  place-items: center;
}
Posted by: Guest on June-01-2021
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020

Browse Popular Code Answers by Language