You can now center flex items with just one property
so instead of
{
justify-content: center;
align-items: center;
}
just use
{
place-items: center;
}
I don’t know about browser support but check MDN for updates!!
You can now center flex items with just one property
so instead of
{
justify-content: center;
align-items: center;
}
just use
{
place-items: center;
}
I don’t know about browser support but check MDN for updates!!
Yup: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
I actually didn’t know about this shorthand; thanks for pointing it out.