DEV Community

loading...

Discussion on: Rarely known CSS Tips

Collapse
codedgar profile image
codedgar

I always use

.elm{
display:flex;
align-items:center;
justify-content:center;
}
Enter fullscreen mode Exit fullscreen mode
Collapse
sirajulm profile image
Sirajul Muneer

place-items: center
Voila!