Hi Mustapha! you are great, your explanation is amazingly clear and complete! thank you very very very much :)
a little question: is it accurate the statement "Or we can use grid-template where we first define the grid-template-rows then the grid-template-columns" in the "Rows & Columns" paragraph? it seems to me that this does conflict with the example given above ...
have nice days!
Hey Nando, thanks for the kind words, means a lot to me.
You are absolutely right. I inverted them in the article, but it actually is rows then columns:
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr auto 2fr;
// equivalent to
grid-template: 1fr auto 2fr / 1fr 1fr 1fr 1fr;
I made the correction, thanks so much for pointing out this error, you are awesome!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.