Hi everyone! I’ve completed the Fundamental Layout Comprehension project, and I think my finished product is correct, but I wanted to be sure. Thanks for any feedback you can offer!
Congratulations! The result looks as requested.
I have one question an a few improvements/simplifications:
The grid class which defines the layout for <main> should ideally use grid instead of flexbox. Do you know how you could achieve it with grid?
HintUse grid-template-columns with different fr values
position: relative; isn’t needed for the floated image. When removing it you can also get rid of z-index: 1; in nav
The default value of flex-direction is row. There is no need to write it explicitly. (But also isn’t wrong)
You use grid-template-columns: auto auto; for the photos on the right. I recommend using grid-template-columns: 1fr 1fr; to make same-size columns. I doesn’t make a difference in this task since the images are the same size. This would differ if you had text content in the grid.
I hope that helps! If anything is unclear feel free to ask.
No need to feel silly. We are here to learn and mistakes only make us better.
I’m not sure if the # characters in your example are meant to be placeholders for numbers or literal characters (#fr isn’t a valid unit itself). A good solution for this exercise would be:
fr stands for a fraction of the remaining space. This would divide <main> into three quarters for <article> and one quarter for <aside>. An advantage of this over your flex code is that <aside> gets wider when there is more space available.
Exactly. I like to point out such small things when there aren’t any big mistakes. It may give ideas/perspectives for learners who already are on a good level like you are.