Sajeel Ahmad• 80
@sajeell
Submitted
Vertically center a div is really hard
@quintin156
@sajeell
Submitted
Vertically center a div is really hard
@quintin156
Posted
I know one simple way to center a div. Checkout https://web.dev/patterns/layout/ This website has taught me so many layouts just with simple css
(parent container)
.container { display: grid; place-items: center: height: 100vh; }
(children container)
.card { / properties for your card / }
Marked as helpful