Design comparison
Solution retrospective
Im very confuse about flex direction in this project. When i set the flex-direction child to row, the parents is row too. Feel happy for your feedback guys, thanks. Do you think in this project flex is the best or grid?
Community feedback
- @peanutbutterjllyPosted over 1 year ago
Hey 👋,
the default flex direction (or 'flow') is row and can be changed to column; so when you put a
display: flex;
on something, it's naturally going to have a default direction of row.in regards to your parent/child having conflicting styles, I saw in your stylesheet that you were getting items by element and classname; it might help to reduce specificity by only getting by classname and if that doesn't work, try to get more specific by adding elements etc.
as far as flex or grid, they're both layout tools to help and you should use the one you're most comfortable with. I tend to use Grid to layout the page and flex for the individual elements but that isn't always 100% - sometimes I'll only use grid and visa-versa.
Good job completing your solution!
Marked as helpful1@putuphillipstevenPosted over 1 year ago@peanutbutterjlly Hi, thanks for the feedback. Yeah i will try avoid getting items by element and classname. Thanks once again.
0
Please log in to post a comment
Log in with GitHubJoin 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