You have different ways to handle this, I'll give you a cool tip:
.fully--centered { display: flex; place-content: center; place-items: center; }
this is equal to:
.fully--centered { display: flex; align-content: center; justify-content: center; align-items: center; justify-items: center; }
But with less css, this is cool when you have to define different complex flexbox layouts, and you want to save some lines of css.
CONS: obiviously IE doesn't support this shorthand.
Thanks for the tip, I did not know about the place- shorthands!
place-
That sounds amazing
Thanks for the tip!!! I didn't know place- before. A note for developers who are still working on IE - it doesn't support on either Edge or IE
I know this is a big mess, but fortunately I've maded a mixin to handle this:
dev.to/nicolalc/a-mixin-to-rule-th...
Whoa!! Nice one! I’ll add this to the code notes 👏 thanks for sharing 😊
Super cool! Thanks for sharing! 🤩
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You have different ways to handle this, I'll give you a cool tip:
Using place-[what] instead of align and justify:
this is equal to:
But with less css, this is cool when you have to define different complex flexbox layouts, and you want to save some lines of css.
CONS: obiviously IE doesn't support this shorthand.
Thanks for the tip, I did not know about the
place-
shorthands!That sounds amazing
Thanks for the tip!!! I didn't know place- before. A note for developers who are still working on IE - it doesn't support on either Edge or IE
I know this is a big mess, but fortunately I've maded a mixin to handle this:
dev.to/nicolalc/a-mixin-to-rule-th...
Whoa!! Nice one! I’ll add this to the code notes 👏 thanks for sharing 😊
Super cool! Thanks for sharing! 🤩