Omg I'm at 499k. Much excitement I guess? Help me hit that mark by subscribing if you enjoyed this!
@nilen4 жыл бұрын
I need to make a 3 column website 2 column, how?
@jeromeclaveau35194 жыл бұрын
Well deserved, thank you for providing quality educational content on a regular basis.
@Mark330904 жыл бұрын
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.
@torickjdavis4 жыл бұрын
@@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!
@torickjdavis4 жыл бұрын
TIL: You can have a decimal part (fraction) of a fractional unit. Didn't even consider the possibility, opens so many doors. Thanks Gary! (Near 10:10)
@angiev18403 жыл бұрын
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!
@rudrapratapsinha88804 жыл бұрын
CSS grid is revolutionary.
@boukhadc4 жыл бұрын
Rudra Pratap Sinha from 2012
@MrAndi12814 жыл бұрын
@@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.
@boukhadc4 жыл бұрын
MrAndi1281 yeah 2017 was the year we could say it is supported you are right.
@ne98354 жыл бұрын
Yup!!
@ratchthps3 жыл бұрын
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.
@adnanamin36664 жыл бұрын
Finally 80% grid confusion is solved! Thank you so much!! :)
@andreszabala91784 жыл бұрын
Which is the over 20%? jejej
@JoeMilbachOnline4 жыл бұрын
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.
@mawulijo4 жыл бұрын
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
@DesignCourse4 жыл бұрын
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.
@mawulijo4 жыл бұрын
@@DesignCourse Can't say I don't believe you. Can I? Can the NSA guy be a mutual friend? :DD
@farn4514 жыл бұрын
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. :)
@nikoslouzis18882 жыл бұрын
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!!!!!!!!!
@jeramiemyers8938 Жыл бұрын
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!
@jonathansias38624 жыл бұрын
Finally... ! Best tutorial for anyone who wants to learn css grid. Very well explained and clearly even for those who are starting.
@Franiveliuselmago4 жыл бұрын
"get the diabeetus in 1 week wth our candies" lmao
@Wendellpk1234 жыл бұрын
HAHAHA
@heavydirtysoul14914 жыл бұрын
they are way too sweet, i believe
@fsantos15954 жыл бұрын
Hahaha
@viktorklymets66304 жыл бұрын
you also can use img instead css background and instead background-size use object-fit property for image
@cwinter904 жыл бұрын
I use grid template areas whenever I use grid. It makes shit super simple.
@AccessCode1014 жыл бұрын
Quick question... when would you use flexbox then? For example, for a single page application, wouldn't you use flexbox instead of grid?
@cwinter904 жыл бұрын
@@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.
@cwinter904 жыл бұрын
@@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.
@cwinter904 жыл бұрын
@@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/
@tinashevakirayi44224 жыл бұрын
this is the simplest way to understand a very powerful css tool..thank you so much Gary
@choralguardian34424 жыл бұрын
Finally understand grid pretty well. I’m learning web development and none of the courses I’ve done cover the topic very well
@jesusmanuel36974 жыл бұрын
I've ended my relationship with the bootstrap grid(and general) since I met this
@prakharmathur6194 жыл бұрын
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.
@ashleyhoward144 жыл бұрын
Wow when I feel like I've learnt a lot about CSS, I find this. Honestly is there anything that CSS can't do?
@abdelrahmankhalil4 жыл бұрын
previous sibling selection
@ashleyhoward144 жыл бұрын
@@abdelrahmankhalil well there we go
@byc0900204 жыл бұрын
hack NASA
@rakibhossain91354 жыл бұрын
@@byc090020 hahhaaha... great
@aiSage484 жыл бұрын
@@byc090020 We can use HTML for that.
@COMMANDERFOX314 жыл бұрын
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!
@DesignCourse4 жыл бұрын
I love hearing that (the part about the lazy professors 😂)
@StrangeIndeed4 жыл бұрын
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:
@Allformyequine4 жыл бұрын
This has become my bible for grid tutorials! Thank you for rockin it !!!
@ali_murtadha4 жыл бұрын
Wow, I searched a lot and did't understand the Grid as I understood it now .. Thank you very much.
@DaggieBlanqx3 жыл бұрын
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!"
@eftiprwtopapadakis93104 жыл бұрын
Excellent tutorial. Finally CSS Grid makes sense and its so powerful and easy for as newbies!
@hongcai46174 жыл бұрын
This is the best...I watched about 4 different series of tutorials and finanlly understand how it works...
@BneiAnusim4 жыл бұрын
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.
@tifad34 жыл бұрын
This video was SO good! I’ve been racking my brain about a week, trying to figure out CSS Grid. Honestly, thank you! :)
@nonelelacele93003 жыл бұрын
You made it simple, I was really struggling to understand grids...Thank you
@elg2812 жыл бұрын
Stupendous performance 👏
@SuperArnie4 жыл бұрын
Row/column definition by start and end line is easier when you think of the numbers as coordinates. Example kzbin.info/www/bejne/j3-lXn16bM6DpbMm49s 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 KZbin video on this, topic. Yours is definitely in the top tier.
@nabiisakhanov35224 жыл бұрын
I finally get it... Thank you so much man, your explanation is an infinite times clearer than anything else I could find
@TheNewton4 жыл бұрын
@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
@bree68594 жыл бұрын
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~
@tomcoop97504 жыл бұрын
Great explanation! I always understood block layouts and flexbox - but grid seemed like a different ball game.
@rickucherian3 жыл бұрын
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 🙏🙏
@mad_coder4 жыл бұрын
2.45 - three rows, not columns. Very good videos! Subscribed
@kasirojkt92453 жыл бұрын
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
@sarthakmalhotra79123 жыл бұрын
Wow, didn't know that it was this simple. Excellently Explained. 10/10 would learn again.
@johndoe2233gh4 жыл бұрын
Get a screen recorder that can transition between 2 displays. It's really annoying having to switch between programs on only one display.
@Beritofficial4 жыл бұрын
This is my fourth video on CSS grid and it finally made sense. Thank you! :)
@butterchoco45384 жыл бұрын
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.
@md.sumonbiswas22723 жыл бұрын
Thanks a lot, simon. I had trouble a long time with this. Finally I got it from you brother
@kvncnls4 жыл бұрын
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.
@KriszX124 жыл бұрын
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...
@rubentorrealba4 жыл бұрын
Excellent, clear and direct. Question: why didn't you use the BEM Methodology and SASS?
@Jake-xs4mx4 жыл бұрын
Unnecessary for such a small project.
@rengoku81xx4 жыл бұрын
Thank you soooooooo much for this. This was the most clear explanation for someone that learns visually.
@mtlfrancesca58804 жыл бұрын
i was on the struggle train with this, for real, but now i get it!! thank you!!!!! Ive subscribed.
@tonnygidraph72464 жыл бұрын
Maan, you are awesome Never used Grid before But now, am implementing it on a site that should be going to production soon. Awesome!!
@Digmen14 жыл бұрын
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
@neoTriny3 жыл бұрын
that really helped me, although it's a little messy. But, that's what make things real
@ISOnepal4 жыл бұрын
U did great boss. May Pasupati Nath bless u. I am subscribing ur channel.
@canersanli4 жыл бұрын
Great content! How to make it responsive tho?
@MauroAmador4 жыл бұрын
excellent explanation friend, with your videos it has been easier to understand CSS Grid, now to continue practicing and see how to apply responsive design, a question what software do you use to make web prototypes?
@SteveUrlz2 жыл бұрын
Gr8 vid Gary. I can't help but wonder, when you have the explicit grid declaration, then how can one make a grid item fit those predefined areas, let's say height wise, how to make the "candify" text fit the first two "main" areas height wise? (25:40)
@petarkolev69282 жыл бұрын
Yet another amazing video!
@darkmift4 жыл бұрын
Grid nowadays are a vital skill
@mindlessgreen4 жыл бұрын
Never seen a better explanation.
@linojrasmolo71614 жыл бұрын
Wow. Sir, you always have an amazing tuturials. Ive been watching your videos and i learn a lot from it. Thank you.
@StrangeIndeed4 жыл бұрын
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
@felipewwa4 жыл бұрын
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?
@dharmang4 жыл бұрын
Man getting some real css grids help from youtube these days. Not that i dont like it... 👍🏻
@akamaru18224 жыл бұрын
Informative content! Will try using this for my next project. On another note, can we have a follow up video on making this a dynamic layout for mobile?
@darkxiao4 жыл бұрын
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!
@neutralface4 жыл бұрын
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%).
@alessandrospiridigliozzi79433 жыл бұрын
the question I have is: how do you put the content (text, h1, p, etc.) inside those boxes/cells? For example, the name of the site ''candify'' fits perfectly in the 1st cell in the top-left corner, while the ''majorly awesome candies'' h1 fits in the cell below... and these are all part of the same div .main
@danvilela4 жыл бұрын
Bro, your channel is awesome! Got a new subscriber! Thanks for the videos
@endeavor42994 жыл бұрын
Your content is amazing and really fun to watch! You've definitely earned my sub =)
@diugach88384 жыл бұрын
Thank you so much this course has helped me so much
@stevenluker7934 жыл бұрын
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.
@Colorbowl804 жыл бұрын
Finally got grid system...thank you
@spiritosa01234 жыл бұрын
Thank you very much. Love the visuals!
@kashif_i4 жыл бұрын
Great video, can you do a comparison between CSS grid and flexbox and do a short responsive example.
@chicox3me4 жыл бұрын
Hey, Garry, isn't this only css grid's explicit behavior in the video? Implicit behavior is about creating rows and columns on the fly (with grid-auto-rows, grid-auto-columns, i think)
@dubble.2 жыл бұрын
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?
@nicklawrence72444 жыл бұрын
@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
@t-consult4 жыл бұрын
Great Demo of the Grid System, I am going to give it a whirl! Looks very simple once you get the hang of it. How would you manage mobile first with this type of layout?
@marcograzer40663 жыл бұрын
Super Video! Ich habe für 2,00 CHF Applaus gesendet. 👏
@MyALPHAguy4 жыл бұрын
best video on css grid ever released!
@carolmckay51524 жыл бұрын
The order of the html elements matters VERY MUCH in regards to accessibility a11y. Please research this as you are teaching people bad habits.
@Edwardtonnn4 жыл бұрын
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.
@goldenfish314 жыл бұрын
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.
@schoolofsa4 жыл бұрын
If you "know" this stuff why are you even watching this?
@carolmckay51524 жыл бұрын
@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?
@carolmckay51524 жыл бұрын
@@goldenfish31 Yes, useful video css wise, misleading html wise, we all have room to learn more.
@3mweb Жыл бұрын
Hi, what's the name of the tool used in the tutorial to draw the grid? Thanks for all !!!🙏
@bkrsaleem84 жыл бұрын
Dude you are simply the best! greeting from Austria :D
@JorgeHernandez-kh4bm4 жыл бұрын
Is there any video showing how to start on mobile layout without grid and then using grid for wider screens?
@briankgarland3 жыл бұрын
Good tutorial. Maybe take a mobile first approach though?
@sharriceowens9133 жыл бұрын
Thank u sooo much this was one of my weak spots with css now I know, my other issue is positions ima check ur page for that if not can you make one
@wandat63534 жыл бұрын
This helped me a lot in working with grids, Thanks!
@danielelgressy3 жыл бұрын
Thanks for the video. if there is a div that sometimes exist and sometime doesn't and I'm using grid, the div will be there without the content. comparing to flex box if the content is empty the rest of the elements will take over the empty space. is it possible to make it happened using grid as well?
@Vijay-ih7cv4 жыл бұрын
Thanks sir, understanding grid in one solution. Really amazing
@requenz_3 жыл бұрын
Solid video! Helped me out a ton!
@waseembarcha68164 жыл бұрын
Congrats for 500k, I was wondering if there is any upcoming course for Vue with TypeScript?
@alexgrinberg18882 жыл бұрын
Amazing course. Thank You.
@Digmen14 жыл бұрын
Hi Gary. Regarding this tutorial. There were two areas where I got lost. The HTML at 8:30 and the CSS at 25:15, where you made some changes and then moved on very quickly, so that we could not see the final code. I have spent hours trying to replicate your Candy site and I have all sorts of problems with the class elements, probably due to the fact that I cannot read your last bits of code. Can you help us here?
@lambo-ca4 жыл бұрын
Solved a lot of my confusions. Thanks man
@TuneAddikt4 жыл бұрын
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.
@thedude42542 жыл бұрын
People are still using INTERNET EXPLORER?! REALLY?!
@carlosduque87673 жыл бұрын
This was really helpful, thanks!
@minli83944 жыл бұрын
How many times it was said in this video the word "I" for no reason? ;) Great video!
@BarunKharel4 жыл бұрын
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.
@scientificshiv2 жыл бұрын
Do you have a channel where you play guitar? Would love to see that.
@geoffmahugu89834 жыл бұрын
This will save me a lot of development time, thanks 👍🏾
@MarcCardwell4 жыл бұрын
i'm a long time old print designer, trying to be more employable. what are the advantages of using XD instead of AI or Pshop? i know it can animate transitions between pages, and that looks nice, but does it do anything to make it easier to code?
@satenikmnatsakanyan95674 жыл бұрын
Thanks a lot it's amazing I finally understood the GRID structure