Order Summary, HTML/CSS

Solution retrospective
I am not sure whether it is correct method to use display: flex
in this way (on child div as well in order to set flex inside them). Or whether grid layout would be better option for this one.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@adamwinzdesign
It's perfectly ok to set display:flex on a parent and a child, and many layouts require it. It also helps to have both a parent and child use display:flex when using a responsive design because you can change one or the other or both to flex-direction:column whenever you need to, depending on the screen width or whatever the use case requires.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord