Centering Things in CSS Using Flexbox | DigitalOcean

PHOTO EMBED

Wed Aug 03 2022 10:57:13 GMT+0000 (UTC)

Saved by @RitvikBuxi321 #css

.box.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}
content_copyCOPY

centered the div

https://www.digitalocean.com/community/tutorials/css-centering-using-flexbox