Answers for "center div contents cs"

CSS
89

center a div in css

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

how to assign something in center inside a div

P { text-align: center }
H2 { text-align: center }
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language