In my opinion it would make sense to also allow justify-content on a block element now as well. Text-align seems inaccurate and confusing as a lot of times you might be horizontally centering another div and not just text
Yes, any block-level element can now be centered vertically using align-content: center; You would also need text-align: center; to center the element's content horizontally. Currently align-content has 79% global browser support on block-level elements, which means that most browser do support this feature, but we still need to wait some time for the devs to implement that in every browser on every device.
Actually, if you use flex, the containers are by default remains limited to the content (I mean the containers won't take up the whole width/length like a default div.). But this text-align and align content takes up the remaining space of the container too. Am I right ?
❤❤❤❤❤❤ CSS coding life just got a little bit easier! Thankyouthankyouthankyou!!!!
Thanks a lot bro and keep positing
In my opinion it would make sense to also allow justify-content on a block element now as well. Text-align seems inaccurate and confusing as a lot of times you might be horizontally centering another div and not just text
Can't wait for fix to that fix!😅
It's a really great way. Thanks for sharing the tips
Learnt a new thing today. Very informative and helpful
Good work keep it up brother
Thanks for sharing
thank u, that was very helpful
Glad to hear!
@@coding2go no prob!
I really love you ❤ from morocco
FINALY!
Jesus. It's such a cool thing!
so now we can use the other properties of justify content
that was useful
Awesome
Wait! What about vertical-align
use center tag
love it
you are sent by god.
1:14 is really centred any element using just align-content:center
Yes, any block-level element can now be centered vertically using align-content: center; You would also need text-align: center; to center the element's content horizontally. Currently align-content has 79% global browser support on block-level elements, which means that most browser do support this feature, but we still need to wait some time for the devs to implement that in every browser on every device.
justify content and align items center dont work anymore
Not working😂
Css is badly designed from the start what do you mean
Now we just have to wait for some years to pass so we can use it safely 😁
Actually, if you use flex, the containers are by default remains limited to the content (I mean the containers won't take up the whole width/length like a default div.). But this text-align and align content takes up the remaining space of the container too. Am I right ?