I can't subscribe now to help you reach 500K, sorry... because, I AM ALREADY SUBSCRIBED OF COURSE!!! Your channel rocks!!!! You make it look so easy and explain everything well... A huge thank you for sharing your knowledge.
Hi Gary, Your channel is perfect match for my needs. As a student I have many questions about FrontEnd and your videos answer them all. Please make one video on making complex template through Bootstrap. It help us to understand the complex part of the development. A Bigg thank you, Gary. 😊
@@nilen Using CSS Grid you have a few options. You can define grid-template-areas or use ideas shown in the video with numbered columns and rows. Then, at a break point (from a media query), you can redefine the grid in similar ways. Hopefully this helps!
This is one of those things where you look at several tutorials and see multiple that are not as helpful for whatever reason, maybe you feel like they aren't explaining things well, or they are going about things in this roundabout way, or skimming over some crucial aspect or whatever, or they assume some prerequisite knowledge you may not have, and it just makes it hard to understand 100%. Then you watch this one and it just clicks so much easier like -- "why didn't people explain it this way to begin with." I guess the usefulness of tutorials can vary for lots of reasons including your skill level, but this is the one that helped me the most. Very simple and to the point and easy to follow and I now understand enough about grids that I can immediately begin using them.
I've done several grid tutorials and this one really helped the most. You can't set the css correctly when you're just learning grid and more time is spent just giving you a list of attributes. The illustrations made all the difference for me and I'm ready to design my grid now. Thanks!
Be careful what order you place your HTML elements. Screen readers tend to rely on the actual placement of the HTML tags and not how it is rendered on the page after css. You do a great job I enjoy watching your videos. Cheers and keep up the great work.
Gary Simon: ""Hopefully you enjoyed that..." Me: "Ënjoyed is an understatement... I loved every bit of it, especially while coding along, and pausing to wonder why I cant like the video multiple times!"
dude, you're an awesome teacher. i've been using wordpress for years and back in the day i used to code html and css but got lazy. recently been trying to get back into front end devlopment and your tutorials are the best i've found. keep up the good work. :)
@@AccessCode101 I pretty much only use Flexbox to make containers space evenly. So pretty much I only use flexbox to justify-content: space-between. Everything else I've had to do for my job I haven't had any problems using grid. I deal with a lot of pixel perfect layouts in my job where all spacing is exact down to a few couple pixels. There really isn't much flexing going on. I just prefer to use grid as often as possible. I absolutely love grid template areas to move things around especially since it kind of gives you a visual while typing it out. Ever been to a fast food place and they have digital menus instead of paper? (In the US) Well, that's my job. Large corporations generally like everything on their screens exact and I've found grid to be the easiest way to accomplish that personally. As for a SPA I don't see how any of that differs when using React or Vue or Angular or whatever else. It all updates dynamically. All the CSS is scoped per component and you can have grids inside of grids inside of grids without any problem and with the fractions, min-content, max-content or anything else you can accomplish whatever you need with grid.
@@AccessCode101 For example SPA main grid for your overall website layout. Then with a section in the middle that updates inside of that section in the middle you can use grid template areas to layout all of your individual components like forms or whatever else. Form grid: grid-template-areas: ". title ." "formContent formContent formContent" ". . submit"; In formContent you just spit in all your divs and each div contains inputs. Input grid: grid-template-areas: "label input" . validationCheckError"; It kind of gives you a visual representation of how each component lays out just looking at the CSS. The validationCheckError would just have either a fixed height so there is always room for it whether or not it's needed or you could use min-content on that row's height and with an dom if statement it only takes up space if it is actively stamped to the DOM.
@@AccessCode101 short answer is you can nest multiple grids inside of each other. I found this that may help explain maybe? gridbyexample.com/examples/example21/
Row/column definition by start and end line is easier when you think of the numbers as coordinates. Example ruclips.net/video/YNB-JD7iPoQ/видео.htmlm49s You say “yum starts on line 3 ends on 4 in terms of columns and starts on line 2 ends on 3 for the rows.” Then you edit every 2nd number in the code. My suggestion: Just think of the grid lines as coordinates: “yum starts at 3/2 for the left upper corner and ends at 4/3 for its lower right.” Type the coordinates in this natural order and you get the same result without twisting your brain into knots ;-) That said: Great explanation especially concerning the management of each tracks dimensions Just began using grids and sponged up every RUclips video on this, topic. Yours is definitely in the top tier.
That was PERFECT! This helped me a lot and now I understand CSS Grid properly. Man I just wanna thank you for all the hard work you do for us, it's amazing! I recently came across your videos, and now I am a fan...I learn from you everyday.
grid-area: 3 / 2 / 4 / 3; is basically where lines converge with each other. You need to visualize this with the "Firefox grid tool" to understand it better.
13:45 random fun fact - you can highlight the word the cursor is currently on by pressing Ctrl + D. Pressing Ctrl + D again highlights the next instance of the highlighted word. So in this situation Gary could've just pressed Ctrl + D twice and written the word 'row'. I know that it seems like knowing this doesn't save that much time, but it adds up c:
I'm using grid currently to structure a wine review api I'm fetching. I definitely struggled with it a bit, but was able to get it to look the way I wanted it to, this video is super helpful and I wish I had it a day ago XD. At the very least, it explained it better~
Thanks so much man. I literally just finished the CSS Grid course on FreeCodeCamp and your video helped me understand how these concepts are applied to a real website page.
This is absolutely madness !! Can you please make a video about animation in using css grid ?? For instance, I wanna make wipe transition to reveal the content.
@DesignCourse 3:03 for future grid teachings may want to occasionally include an animation shifting the grid numbers from centers to starts, this seems to be a consistent pain as most have been conditioned to expect the numbers to be conceptually centered to the respective grid but it almost uintuitively starts on the edges/joints
At the point where you introducing the grid-area and telling its a bit confusing. Just think as coordinates on the grid! First corner is 3-1 the second is 4-3. You just write in 3/1/4/3 format and the computer just fills the fitting square. Thanks for this video, this is a very easy way to grid. My teacher at Uni showed us a very bad, barely useable, confusing method for grid. And it was looong...
Ok bro. You make grid look much easir bcs you defined 1st the term. Then you construct it in moderate speedy mode😁 I will try this. I wonder if grid methode has another advantage beside it simplicity compare to other methode in designing area
Agreed. Accessibility is important and we should always use best practices. Structuring your html from a top to bottom way is best - nav > content > footer etc.
It definitely does, this website would suck accessibility wise. I mean, the header at the bottom, what? Nonetheless, this video shows the basics of grid, which can be confusing sometimes. After all the title is about CSS Grid, but yeah, a little a bit of best practices here and there wouldn't hurt. It doesn't make this video less interesting.
Hi Gary ! This video is very informative to those who want to know about how css grid works, Can u pls do another video on how to add content within the grid with grid gap column gap etc , Adding text images etc...sub grid it seems is still not supported....So flexbox properties within a Grid layout...That would be more helpful 🙏🙏
@DesignCourse First off, thanks so much for this! Definitely gonna save us all quite a bit of time and headache during layout! Question: would you recommend using media queries for redefining your grid at breakpoints or is there another method of wrapping/resizing that you would recommend with this particular layout method? Thanks again so much, keep up the exceptional work! :D
Maybe that's a stupid question, but why do we have to put slashes between arguments in grid-column etc? Normally, we split the arguments with space, but this specific attribute requires slashes. Why is it different? EDIT Okay, I've figured it out. Basically you can name grid lines e.g. 'col-start 7'. There can be a space in the name, so we can't just use space to split arguments, so we have to use something else. That's the why of the slashes
When defining columns/rows with the FR unit, is there a best practice or convention that says the sum of those FR units need should be even? I noticed for the columns you chose 1fr 1.2fr 1.5 fr (equals 3.7fr total instead of 4fr for example). Thanks!
The sum of 'fr' -values tells how many frs is 100%. Total of 3.7frs is no different than total of 4frs since both equal 100% of the width . So the sum of all fr's shouldn't matter, only the individual frs does (e.g. *1fr* / 3.7frs = ~27%, and *1fr* / 4frs = 25%).
The way I use css Grid, I only use it for small adjustments for positioning and alignment , if your markup is solid you won’t have to bloat the css file with all the grids rules
oneBACON, yes you are absolutely right ! And I only use css grid for vertical alignment and horizontal alignment, use case would be a navigational bar or aligning cards in a row for the exact lvl of positioning
So, with this, how would you proceed to make the layout responsive? I imagine you could use media queries to line them up in a single column, but is there any other way?
Great stuff. Great job explaining. I have used grid-template-areas ever since learning CSS Grid. It's quicker. It's more visual if I see the areas all named and laid out in text format. And I am less likely to make as many mistakes. Could you do a video on doing a web page using CSS Grid for layout AND a framework like Bootstrap, Materialize, Bulma, etc. for styling elements (buttons, etc.) ASP.NET Core uses bootstrap out of the box. I think doing layouts would be much nicer (quicker, cleaner markup, easier to work with, easier to change). It would be easier to switch frameworks if one didn't have to think about layout too.
The opening music way too long. It should have stopped right after the ad. Anyway, nice content. I have not used grid till now. This video makes me wanna use grid in my next project.
Great for modern browsers. If you're looking to use this in a web application though you'll need quite a lot of prefixing for the old dogs like IE11. Great explanation though.
Omg I'm at 499k. Much excitement I guess? Help me hit that mark by subscribing if you enjoyed this!
I need to make a 3 column website 2 column, how?
Well deserved, thank you for providing quality educational content on a regular basis.
I can't subscribe now to help you reach 500K, sorry... because, I AM ALREADY SUBSCRIBED OF COURSE!!! Your channel rocks!!!! You make it look so easy and explain everything well... A huge thank you for sharing your knowledge.
Hi Gary, Your channel is perfect match for my needs. As a student I have many questions about FrontEnd and your videos answer them all. Please make one video on making complex template through Bootstrap. It help us to understand the complex part of the development. A Bigg thank you, Gary. 😊
@@nilen Using CSS Grid you have a few options. You can define grid-template-areas or use ideas shown in the video with numbered columns and rows. Then, at a break point (from a media query), you can redefine the grid in similar ways. Hopefully this helps!
CSS grid is revolutionary.
Rudra Pratap Sinha from 2012
@@boukhadc hmm... browser support was just catching up in the last two years! so in 2012, even though it existed, not a lot of support was there.
MrAndi1281 yeah 2017 was the year we could say it is supported you are right.
Yup!!
This is one of those things where you look at several tutorials and see multiple that are not as helpful for whatever reason, maybe you feel like they aren't explaining things well, or they are going about things in this roundabout way, or skimming over some crucial aspect or whatever, or they assume some prerequisite knowledge you may not have, and it just makes it hard to understand 100%. Then you watch this one and it just clicks so much easier like -- "why didn't people explain it this way to begin with." I guess the usefulness of tutorials can vary for lots of reasons including your skill level, but this is the one that helped me the most. Very simple and to the point and easy to follow and I now understand enough about grids that I can immediately begin using them.
Finally 80% grid confusion is solved! Thank you so much!! :)
Which is the over 20%? jejej
I've done several grid tutorials and this one really helped the most. You can't set the css correctly when you're just learning grid and more time is spent just giving you a list of attributes. The illustrations made all the difference for me and I'm ready to design my grid now. Thanks!
i dont know how you do it , but bro. YOU EXPLAIN EVERYTHING LIKE YOU ARE TALKING TO 10 YEARS OLD KID, AND IT FCKIN WORKS!!!!!!!!!
Be careful what order you place your HTML elements. Screen readers tend to rely on the actual placement of the HTML tags and not how it is rendered on the page after css. You do a great job I enjoy watching your videos. Cheers and keep up the great work.
"get the diabeetus in 1 week wth our candies" lmao
HAHAHA
they are way too sweet, i believe
Hahaha
Gary Simon: ""Hopefully you enjoyed that..."
Me: "Ënjoyed is an understatement... I loved every bit of it, especially while coding along, and pausing to wonder why I cant like the video multiple times!"
How did you know I was watching your other CSS grid videos? I simply can't believe the impeccable timing of this video. Thanks Garry
I know because I'm watching you... I watch all of my subscribers -- it's a reciprocal relationship. I know a guy at the NSA.
@@DesignCourse Can't say I don't believe you. Can I? Can the NSA guy be a mutual friend? :DD
you also can use img instead css background and instead background-size use object-fit property for image
dude, you're an awesome teacher. i've been using wordpress for years and back in the day i used to code html and css but got lazy. recently been trying to get back into front end devlopment and your tutorials are the best i've found. keep up the good work. :)
I've ended my relationship with the bootstrap grid(and general) since I met this
Finally... ! Best tutorial for anyone who wants to learn css grid.
Very well explained and clearly even for those who are starting.
Dude I've been struggling the last few days trying to wrap my head around the grid concept. This was a great explanation man thank you!
Thank you for these amazing videos. They solve a lot of confusions and misunderstandings for me. You are much more helpful than most of my lazy profs!
I love hearing that (the part about the lazy professors 😂)
Finally understand grid pretty well. I’m learning web development and none of the courses I’ve done cover the topic very well
I use grid template areas whenever I use grid. It makes shit super simple.
Quick question... when would you use flexbox then? For example, for a single page application, wouldn't you use flexbox instead of grid?
@@AccessCode101 I pretty much only use Flexbox to make containers space evenly. So pretty much I only use flexbox to justify-content: space-between. Everything else I've had to do for my job I haven't had any problems using grid. I deal with a lot of pixel perfect layouts in my job where all spacing is exact down to a few couple pixels. There really isn't much flexing going on. I just prefer to use grid as often as possible. I absolutely love grid template areas to move things around especially since it kind of gives you a visual while typing it out. Ever been to a fast food place and they have digital menus instead of paper? (In the US) Well, that's my job. Large corporations generally like everything on their screens exact and I've found grid to be the easiest way to accomplish that personally. As for a SPA I don't see how any of that differs when using React or Vue or Angular or whatever else. It all updates dynamically. All the CSS is scoped per component and you can have grids inside of grids inside of grids without any problem and with the fractions, min-content, max-content or anything else you can accomplish whatever you need with grid.
@@AccessCode101 For example SPA main grid for your overall website layout. Then with a section in the middle that updates inside of that section in the middle you can use grid template areas to layout all of your individual components like forms or whatever else.
Form grid:
grid-template-areas:
". title ."
"formContent formContent formContent"
". . submit";
In formContent you just spit in all your divs and each div contains inputs.
Input grid:
grid-template-areas:
"label input"
. validationCheckError";
It kind of gives you a visual representation of how each component lays out just looking at the CSS. The validationCheckError would just have either a fixed height so there is always room for it whether or not it's needed or you could use min-content on that row's height and with an dom if statement it only takes up space if it is actively stamped to the DOM.
@@AccessCode101 short answer is you can nest multiple grids inside of each other. I found this that may help explain maybe? gridbyexample.com/examples/example21/
This has become my bible for grid tutorials! Thank you for rockin it !!!
Wow when I feel like I've learnt a lot about CSS, I find this. Honestly is there anything that CSS can't do?
previous sibling selection
@@abdelrahmankhalil well there we go
hack NASA
@@byc090020 hahhaaha... great
@@byc090020 We can use HTML for that.
Wow, I searched a lot and did't understand the Grid as I understood it now .. Thank you very much.
this is the simplest way to understand a very powerful css tool..thank you so much Gary
Row/column definition by start and end line is easier when you think of the numbers as coordinates.
Example ruclips.net/video/YNB-JD7iPoQ/видео.htmlm49s
You say “yum starts on line 3 ends on 4 in terms of columns and starts on line 2 ends on 3 for the rows.”
Then you edit every 2nd number in the code.
My suggestion:
Just think of the grid lines as coordinates: “yum starts at 3/2 for the left upper corner and ends at 4/3 for its lower right.”
Type the coordinates in this natural order and you get the same result without twisting your brain into knots ;-)
That said: Great explanation especially concerning the management of each tracks dimensions Just began using grids and sponged up every RUclips video on this, topic. Yours is definitely in the top tier.
That was PERFECT!
This helped me a lot and now I understand CSS Grid properly.
Man I just wanna thank you for all the hard work you do for us, it's amazing!
I recently came across your videos, and now I am a fan...I learn from you everyday.
grid-area: 3 / 2 / 4 / 3; is basically where lines converge with each other. You need to visualize this with the "Firefox grid tool" to understand it better.
This is the best...I watched about 4 different series of tutorials and finanlly understand how it works...
Never seen a better explanation.
2.45 - three rows, not columns. Very good videos! Subscribed
I finally get it... Thank you so much man, your explanation is an infinite times clearer than anything else I could find
13:45 random fun fact - you can highlight the word the cursor is currently on by pressing Ctrl + D. Pressing Ctrl + D again highlights the next instance of the highlighted word.
So in this situation Gary could've just pressed Ctrl + D twice and written the word 'row'. I know that it seems like knowing this doesn't save that much time, but it adds up c:
Excellent tutorial. Finally CSS Grid makes sense and its so powerful and easy for as newbies!
This video was SO good! I’ve been racking my brain about a week, trying to figure out CSS Grid. Honestly, thank you! :)
that really helped me, although it's a little messy. But, that's what make things real
You made it simple, I was really struggling to understand grids...Thank you
Get a screen recorder that can transition between 2 displays. It's really annoying having to switch between programs on only one display.
I'm using grid currently to structure a wine review api I'm fetching. I definitely struggled with it a bit, but was able to get it to look the way I wanted it to, this video is super helpful and I wish I had it a day ago XD. At the very least, it explained it better~
Thanks a lot, simon. I had trouble a long time with this. Finally I got it from you brother
Wow, didn't know that it was this simple. Excellently Explained. 10/10 would learn again.
Stupendous performance 👏
This is my fourth video on CSS grid and it finally made sense. Thank you! :)
Thanks so much man. I literally just finished the CSS Grid course on FreeCodeCamp and your video helped me understand how these concepts are applied to a real website page.
This is absolutely madness !!
Can you please make a video about animation in using css grid ??
For instance, I wanna make wipe transition to reveal the content.
Yet another amazing video!
i was on the struggle train with this, for real, but now i get it!! thank you!!!!! Ive subscribed.
Thank you soooooooo much for this. This was the most clear explanation for someone that learns visually.
Great explanation! I always understood block layouts and flexbox - but grid seemed like a different ball game.
Finally got grid system...thank you
@DesignCourse 3:03 for future grid teachings may want to occasionally include an animation shifting the grid numbers from centers to starts, this seems to be a consistent pain as most have been conditioned to expect the numbers to be conceptually centered to the respective grid but it almost uintuitively starts on the edges/joints
At the point where you introducing the grid-area and telling its a bit confusing. Just think as coordinates on the grid! First corner is 3-1 the second is 4-3. You just write in 3/1/4/3 format and the computer just fills the fitting square.
Thanks for this video, this is a very easy way to grid. My teacher at Uni showed us a very bad, barely useable, confusing method for grid. And it was looong...
Maan, you are awesome
Never used Grid before
But now, am implementing it on a site that should be going to production soon.
Awesome!!
Grid nowadays are a vital skill
Thank you very much. Love the visuals!
Wow. Sir, you always have an amazing tuturials. Ive been watching your videos and i learn a lot from it. Thank you.
Ok bro. You make grid look much easir bcs you defined 1st the term. Then you construct it in moderate speedy mode😁 I will try this.
I wonder if grid methode has another advantage beside it simplicity compare to other methode in designing area
Thanks sir, understanding grid in one solution. Really amazing
Man getting some real css grids help from youtube these days. Not that i dont like it... 👍🏻
Your content is amazing and really fun to watch! You've definitely earned my sub =)
Thank you so much this course has helped me so much
best video on css grid ever released!
The order of the html elements matters VERY MUCH in regards to accessibility a11y. Please research this as you are teaching people bad habits.
Agreed. Accessibility is important and we should always use best practices. Structuring your html from a top to bottom way is best - nav > content > footer etc.
It definitely does, this website would suck accessibility wise. I mean, the header at the bottom, what? Nonetheless, this video shows the basics of grid, which can be confusing sometimes. After all the title is about CSS Grid, but yeah, a little a bit of best practices here and there wouldn't hurt. It doesn't make this video less interesting.
If you "know" this stuff why are you even watching this?
@Mario Ah, the bad old fashioned way of things - "do as I say, not as I do" *SIGH*. Do we dare hope they will manage to sort this out in 2020?
@@goldenfish31 Yes, useful video css wise, misleading html wise, we all have room to learn more.
Hi Gary ! This video is very informative to those who want to know about how css grid works, Can u pls do another video on how to add content within the grid with grid gap column gap etc , Adding text images etc...sub grid it seems is still not supported....So flexbox properties within a Grid layout...That would be more helpful 🙏🙏
use mediaquery to make it responsive
just swap places;)
This helped me a lot in working with grids, Thanks!
Great content! How to make it responsive tho?
Dude you are simply the best! greeting from Austria :D
U did great boss. May Pasupati Nath bless u. I am subscribing ur channel.
Super Video! Ich habe für 2,00 CHF Applaus gesendet. 👏
Amazing course. Thank You.
@DesignCourse First off, thanks so much for this! Definitely gonna save us all quite a bit of time and headache during layout!
Question: would you recommend using media queries for redefining your grid at breakpoints or is there another method of wrapping/resizing that you would recommend with this particular layout method?
Thanks again so much, keep up the exceptional work! :D
Two points, refer grid area by geometry, refer grid area by area name. Thanks.
Maybe that's a stupid question, but why do we have to put slashes between arguments in grid-column etc? Normally, we split the arguments with space, but this specific attribute requires slashes. Why is it different?
EDIT Okay, I've figured it out. Basically you can name grid lines e.g. 'col-start 7'. There can be a space in the name, so we can't just use space to split arguments, so we have to use something else. That's the why of the slashes
Bro, your channel is awesome! Got a new subscriber! Thanks for the videos
When defining columns/rows with the FR unit, is there a best practice or convention that says the sum of those FR units need should be even? I noticed for the columns you chose 1fr 1.2fr 1.5 fr (equals 3.7fr total instead of 4fr for example). Thanks!
The sum of 'fr' -values tells how many frs is 100%. Total of 3.7frs is no different than total of 4frs since both equal 100% of the width . So the sum of all fr's shouldn't matter, only the individual frs does (e.g. *1fr* / 3.7frs = ~27%, and *1fr* / 4frs = 25%).
Annother great video Gary thanks
I nearly managed to be able to replicate it all.
But I got a bit lost on the section class elements
this is pure gold 👍
Solved a lot of my confusions.
Thanks man
This will save me a lot of development time, thanks 👍🏾
Solid video! Helped me out a ton!
This was really helpful, thanks!
Great tutorial, love the explicit example!
Can I use this type of grid as a template in Adobe Xd or another software without knowledge of programming? Do exist any other websites grids?
Thanks a lot
it's amazing
I finally understood the GRID structure
Man... thank you so much for this awesome tutorial!
this was so helpful. Thank you
Excellent, clear and direct. Question: why didn't you use the BEM Methodology and SASS?
Unnecessary for such a small project.
Thank you very much, it really helped me a lot! 🎉
Thanks for telling me about firefox
Dude! You are amazing at explaining. Thanks a lot
The way I use css Grid, I only use it for small adjustments for positioning and alignment , if your markup is solid you won’t have to bloat the css file with all the grids rules
Bruh u cant really get vertical alignment without grid and without "misusing" other functions. Css grid makes the mark-up way Cleaner and easy to read
oneBACON, yes you are absolutely right ! And I only use css grid for vertical alignment and horizontal alignment, use case would be a navigational bar or aligning cards in a row for the exact lvl of positioning
So, with this, how would you proceed to make the layout responsive? I imagine you could use media queries to line them up in a single column, but is there any other way?
Your'e a boss Gary, thank you for all the work and help. Much appreciated!
super amazing tutorial
When I used other method than GRID I felt like borracho , now I am like Macho! thanks
Fantastic Video! Thank you!
Great stuff. Great job explaining. I have used grid-template-areas ever since learning CSS Grid. It's quicker. It's more visual if I see the areas all named and laid out in text format. And I am less likely to make as many mistakes.
Could you do a video on doing a web page using CSS Grid for layout AND a framework like Bootstrap, Materialize, Bulma, etc. for styling elements (buttons, etc.)
ASP.NET Core uses bootstrap out of the box. I think doing layouts would be much nicer (quicker, cleaner markup, easier to work with, easier to change). It would be easier to switch frameworks if one didn't have to think about layout too.
The opening music way too long. It should have stopped right after the ad.
Anyway, nice content. I have not used grid till now. This video makes me wanna use grid in my next project.
This is so good. Thank you.
This is awesome! Thanks for your amazing videos!
Excellent job!
Great for modern browsers. If you're looking to use this in a web application though you'll need quite a lot of prefixing for the old dogs like IE11. Great explanation though.
People are still using INTERNET EXPLORER?! REALLY?!