Thanks for this very useful tutorial, Steve! I'm brand new to this so my question may be stupid... Why do you use flex instead of grid's justify-items | align-items | place-items here?
@@SteveGriffith-Prof3ssorSt3v3 Thanks for your swift reply, Steve. I've played a bit with your code and noticed that the result is not exactly the same: with flex, the background of the paragraph stretches to fill the entire grid item, which is not the case when using grid's "place-items", for example. (I'm writing this for other readers, not for you... ;) )
For the most part, does grid and flex replace or reduce usage of properties like position / float / clear or does it just depend on the situation and what might one of those situations be ?
position and float are still used - for the original things that they were intended for. Grid and Flex are now the primary approaches for creating layout.
Thanks for this very useful tutorial, Steve!
I'm brand new to this so my question may be stupid... Why do you use flex instead of grid's justify-items | align-items | place-items here?
You definitely could. I was just showing my students that they could combine Flex with Grids because they had previously learned Flex.
@@SteveGriffith-Prof3ssorSt3v3 Thanks for your swift reply, Steve. I've played a bit with your code and noticed that the result is not exactly the same: with flex, the background of the paragraph stretches to fill the entire grid item, which is not the case when using grid's "place-items", for example. (I'm writing this for other readers, not for you... ;) )
For the most part, does grid and flex replace or reduce usage of properties like position / float / clear or does it just depend on the situation and what might one of those situations be ?
position and float are still used - for the original things that they were intended for. Grid and Flex are now the primary approaches for creating layout.
@@SteveGriffith-Prof3ssorSt3v3 thank you for the clarification !