CSS Grid Course

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • CSS Grid makes it easier to create website layouts. It simplifies both your HTML and CSS, while giving you more control over your layout. You can take the interactive version of this CSS grid tutorial here: scrimba.com/g/gR8PTE
    The course contains three sections. The first two will teach you the core concepts you need to know to get started. Together, we’ll build both a website layout and a super cool image grid. In the bonus section, you’ll learn how to create article layouts with CSS Grid plus some more advanced concepts.
    ⭐️Full content overview⭐️
    ⌨️ 0:01 1. Course Introduction
    ⌨️ 4:47 2. Your first grid
    ⌨️ 8:03 3. Fraction units and repeat
    ⌨️ 11:45 4. Positioning items
    ⌨️ 18:28 5. Template areas
    ⌨️ 23:18 6. Auto-fit and minmax
    ⌨️ 27:07 7. Implicit rows
    ⌨️ 29:06 8. An awesome image grid
    ⌨️ 35:56 9. Bonus: Named Lines
    ⌨️ 41:25 10. Bonus: Justify-content and align-content
    ⌨️ 44:17 11. Bonus: Justify-items and align-items
    ⌨️ 47:44 12. Bonus: Auto-fit vs. auto-fill
    ⌨️ 49:39 13. Bonus: Creating an article layout
    ⌨️ 57:37 14. Bonus: Grid vs. Flexbox
    You can connect with the course creator Per Harald Borgen via Twitter: / perborgen
    --
    Learn to code for free and get a developer job: www.freecodecamp.com
    Read hundreds of articles on programming: medium.freecodecamp.com

Комментарии • 513

  • @DaevorTheDevoted
    @DaevorTheDevoted 6 лет назад +257

    0:01 1. Course Introduction
    4:47 2. Your first grid
    8:03 3. Fraction units and repeat
    11:45 4. Positioning items
    18:28 5. Template areas
    23:18 6. Auto-fit and minmax
    27:07 7. Implicit rows
    29:06 8. An awesome image grid
    35:56 9. Bonus: Named Lines
    41:25 10. Bonus: Justify-content and align-content
    44:17 11. Bonus: Justify-items and align-items
    47:44 12. Bonus: Auto-fit vs. auto-fill
    49:39 13. Bonus: Creating an article layout
    57:37 14. Bonus: Grid vs. Flexbox

    • @freecodecamp
      @freecodecamp  6 лет назад +35

      Thanks so much! Just added this to the description.

    • @smwasamsmwasam5734
      @smwasamsmwasam5734 5 лет назад +1

      Thankyou

    • @JennyChengSvicS
      @JennyChengSvicS 3 года назад +2

      @@OG_CK2018
      The justify-content property controls the alignment of grid columns. It is set on the grid container. It does not apply to or control the alignment of grid items.
      The justify-self property overrides justify-items on individual items. It is set on grid items and inherits the value of justify-items, by default.
      Hope this helps

    • @OG_CK2018
      @OG_CK2018 3 года назад

      @@JennyChengSvicS I am sorry bro to waste your time but i actually wanted to type "justify content and justify items"...but now i have understood that

    • @God-T
      @God-T 3 года назад +2

      @@freecodecamp I've been stuck on this video for 3 days now! and I still haven't gotten past 15 mins 😅 I keep forgetting which one is Column and which one is Row.

  • @Freebird1122
    @Freebird1122 4 года назад +15

    I've taken a few courses so far, trying to understand grid; but this is by far the best one so far. This guy gets it, and he teaches in such a clear and simple way. I've been on the hunt for a good boilerplate method for myself; and I just think I've found it. Thank you Per Harald.

  • @HamidTalebiht
    @HamidTalebiht 2 года назад +18

    I highly recommend seeing this course. He explains it as simple but so clear. After this course, you should practice and no need for any other course about GRID CSS.

    • @sevedozo7335
      @sevedozo7335 Год назад

      yeah exactly.
      my mouth automatically widens up by his methods.

  • @sanjayplays5010
    @sanjayplays5010 6 лет назад +5

    Brilliant, and enjoyable! Love the personality you add to this tutorial. Thank you so much, this was great!

  • @Rubariton
    @Rubariton 3 года назад +2

    What an amazing video. Thats last section of the vid was just the icing on the cake; just having learned flexbox I wondered how to combine the 2. Awesome content really

  • @danielc4267
    @danielc4267 4 года назад +7

    The interactive version linked in the Description is awesome. Thank you!

  • @icodetoomuch
    @icodetoomuch 5 лет назад +3

    This guy is amazing.He explains everything in detail and links theory with practical examples. :) Thumbs up.

  • @GabrielOkpo
    @GabrielOkpo 5 лет назад +125

    For people having issues with images not fitting into the grid, Per somehow forgets to add that you need to apply the following properties to the img tag
    .container > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
    for it to work well with all the images. Found that through the CSS Grid article he wrote on Medium,.
    Hope this helps someone cos I was stuck too

  • @michaelbey5
    @michaelbey5 4 года назад

    WOW! Id been looking at a few "grid crash courses" on youtube and opted to go with this slightly longer video and I'm so glad I did! This did such a great job explaining how grid works! Thank you

  • @chotenque6877
    @chotenque6877 5 лет назад +17

    This is extremely eloquent. Thank you.

  • @sasayaki
    @sasayaki 5 лет назад

    I'm about halfway through and wanted to thank you for this tutorial. Once I'm doing I'm going to find some old online course projects and restyle them with this and Flexbox.

  • @DiakoSharifi
    @DiakoSharifi 4 года назад +7

    Thank you, it is one of the best tutorials about css grid.

  • @saintnity5399
    @saintnity5399 3 года назад +12

    Cannot say thank you enough for this awesome CSS Grid course!!! Definitely one of the best out there.

    • @DannyH77
      @DannyH77 8 месяцев назад

      Hello, you posted this two years ago, I was wondering on how far along are you now on your web development skills? do you have a job doing it now?

  • @kasunjalitha2300
    @kasunjalitha2300 3 года назад +1

    Thank you so much! Best css-grid course.
    grid-auto-flow: dense, grid-auto-row, minmax, auto-fit are great tools.... Just wow.
    You have explained everything impressively.

  • @isl8665
    @isl8665 6 лет назад

    The way you teach is wonderful. Everything is systemic . Explaination is detailed and clear., you turn the difficult and confusing stuff into a easy job. You are a great teacher.

  • @AitorMorgado
    @AitorMorgado 4 года назад +1

    Clearly explained, easy to follow and tremendously helpful. I can't thank you enough.

  • @danielahermosillo8991
    @danielahermosillo8991 3 года назад +2

    Great visual explanation! This is incredibly clarifying. Thank you!

  • @eunoia4679
    @eunoia4679 3 года назад

    Wow, your explanation and demo of how the grid-template-areas work is the best! Thank you!

  • @fredpourlesintimes
    @fredpourlesintimes 4 года назад +20

    I'm following your courses, and I have to say that - in particular for a french guy like me -, it's very helpful to find such good quality tutorials. In France, and I guess in some other non-english speaker countries equally, we're struggling a lot for finding concise, really explicite, captivating and entertaining teachings. At least for that, I'm pretty happy having learnt english and some other languages.

    • @relativelytired
      @relativelytired 2 года назад

      Hey, would you be interested in helping a noob french learner like myself learn french from a native? and if you need to practice your english, Je suis anglophone.

    • @honkhonkv2236
      @honkhonkv2236 Год назад

      @@relativelytired I'm on year late but i can do that.

  • @undudeme
    @undudeme 4 года назад +1

    Quite possibly the best CSS Grid reference on RUclips.
    Thank you so much. ☺

  • @ryanunruh8993
    @ryanunruh8993 6 лет назад +2

    Very very helpful. Clear concise and visually pleasing. Thank you so much for this video!

  • @milanm9907
    @milanm9907 5 лет назад +1

    Thanks for this amazing tutorial! I got super confused at the Bonus: Named Lines, but I'll rewatch it and try to understand!

  • @dawinderkumarbhatoe5319
    @dawinderkumarbhatoe5319 5 лет назад +69

    best Explanation and visual examples on CSS grid ever, ive been watching so many tutorials, but this one was Best from all of it. thank you so much for this tutorial, it really helped alot.

    • @JottyHB
      @JottyHB 4 года назад +1

      I agree! Even as a German guy I learnt more than by any German tutorial. Very clearly structured and not as fast as many other tutorials. Thanks so much!

    • @Freebird1122
      @Freebird1122 4 года назад

      Totally agree richi.

    • @agustinvis5720
      @agustinvis5720 3 года назад +1

      Thanks! Your comment is very useful. I'm gonna watch it for sure.

    • @avtar2565
      @avtar2565 Год назад

      Yeah i was thinking about to quit, but this saved me

  • @AbdulMoiezOfficial
    @AbdulMoiezOfficial 5 лет назад +1

    Thank you so much for such a nice tutorial ! Keep it up with advanced and latest techniques. We will be very thankful to you for this :-)

  • @ze_chooch
    @ze_chooch 4 года назад

    Bro, thank you so much for this video. The way you explain these tools is perfect for me. It was a little frustrating when you typed something in with the browser in the way, but, other than that small critique, what a great course. Thank you.

  • @pablitooten
    @pablitooten 5 лет назад +1

    Great video. Just to the point, many videos talk and talk but dont say anything, this one is 1 hour but so dense that there are many things to learn. Thank you so much!

  • @tlarson91119
    @tlarson91119 3 года назад

    I started learning how to make web pages over a year ago and layouts is where I got stuck at for a while. I was confused as to what method(s), for laying out content, that I should use and would just get overwhelmed. The html/css book, that I've been reading from, mentions grid a little bit but in the form of this css-960-grid pre-made stylesheet. This book even showed ways to make layouts (old) by using percentages to set the widths of boxes and then floating them left, but I wasn't sure if floating was the best way.
    I wanted to learn how to make my own grids and this video definitely helped. Thanks a lot!

  • @joel9909
    @joel9909 6 лет назад

    I have only had a sneak peek at this course, and it promises to be amazing
    thank you

  • @ronaldolipata1455
    @ronaldolipata1455 6 лет назад +1

    What a wonderful tutorial! Thank you. :)

  • @SimPwear84
    @SimPwear84 4 года назад +4

    Best CSS Grid Tutorial ever. Clear and to the point with great examples. Thank you so much for this. I can now use my newly acquired Grid knowledge with Flexbox .

    • @user5214
      @user5214 2 года назад

      How is you web development coming along?

    • @SimPwear84
      @SimPwear84 2 года назад +1

      @@user5214 Exceptional

    • @user5214
      @user5214 2 года назад

      @@SimPwear84 fantastic my friend!

  • @quaternion-pi
    @quaternion-pi 5 лет назад

    Amazing tutorial, even better when viewed on the scrimba link! Thanks.

  • @avinashmurmu9070
    @avinashmurmu9070 5 лет назад +3

    explained it in such a simple and easy way....thank you

  • @SonnyBurnett2012
    @SonnyBurnett2012 3 года назад +1

    The best css grid course! Even beats my native language ones. Thank you!

  • @kushalkumar4970
    @kushalkumar4970 2 года назад

    You are a hero man! Not everyone needs to be in the army. Love your way of teaching man!

  • @divyanshubhatnagar4601
    @divyanshubhatnagar4601 4 года назад

    Probably the best tutorial on CSS Grids. Great explanation.

  • @virajmodi
    @virajmodi 5 лет назад +1

    You explained it so easily man!!! Thank u so much :)

  • @ahmaddimashki2290
    @ahmaddimashki2290 5 лет назад +1

    Thank you so much man ! this is was really helpful.

  • @HowTo-nr7uk
    @HowTo-nr7uk 2 года назад

    A best CSS Grid explanation that I found! Hats off!

  • @dan-3268
    @dan-3268 5 лет назад +4

    You guys deserve a medal or something. No wonder the like/dislike ration on this video is the way it is. Thanks a lot! My plan for today was to learn how lay-out things and after watching your video and alongside trying to tweak things I feel like I obtained a lot of knowledge on the subject. So cheers! Blessed be thy children !

  • @OG_CK2018
    @OG_CK2018 4 года назад

    That image grid was unbelievably smart..Thanks for your tutorials..grids are awesome😀

  • @eimearoreilly4356
    @eimearoreilly4356 3 года назад

    Thank you so much for this very clearly explained tutorial. I appreciate it so much.

  • @singhyuvraj122
    @singhyuvraj122 5 лет назад +1

    best CSS grid tutorial , just finished.

  • @jessiexm90
    @jessiexm90 4 года назад

    Simply fantastic introduction to CSS Grid. Thank you.

  • @suziet6535
    @suziet6535 5 лет назад +4

    listened to the dude for 20 min... subscribed :))

  • @umersaeed6032
    @umersaeed6032 2 года назад +1

    Absolutely 0 doubt about it. This is a great course, nicely paced and trains the viewer on a number of options that really matter in design. Tragic that the viewer can't experience the sync due to missing basic.css. Hence, setting the level of this course to be Advanced. Novice users might find a little discomfort and delay in application of the techniques shown.
    I want to thank the makers, for the great depths of knowledge covered. Thank you.

  • @litonhumayun
    @litonhumayun Год назад

    This tutorial is exceptionally good. Thanks for the tutorial. Hope to see a lot from you.

  • @elshanismayilzada
    @elshanismayilzada 4 года назад +1

    This is AMAZING explanation. Wow, thanks a lot teacher.

  • @kbkanore
    @kbkanore 5 лет назад

    Such a nice way of teaching. Thanks for the course.

  • @georgesaeid7231
    @georgesaeid7231 4 года назад

    The best course ever on the topic. Thank you.

  • @boronxxx
    @boronxxx 4 года назад +1

    Very well explained tutorial!
    Cheers to the Author!

  • @maskman4821
    @maskman4821 5 лет назад

    This is the best css grid tutorial ever!

  • @DavidOkwii
    @DavidOkwii 2 года назад

    This is the most comprehensive tutorial on css grids. Thanks

  • @taariqq
    @taariqq 3 года назад +1

    I have seen 3 Grid tutorials in the last 2 days and one tops the other, but this will be hard to beat when it comes to being beginner friendly.

  • @neo90sr
    @neo90sr 4 года назад +1

    didn't expect that grid area trick, that was cool

  • @ngubanezibusiso5154
    @ngubanezibusiso5154 3 года назад

    I love the examples... I have been struggling with grid.... Thanks a lot for the tutorials

  • @ygordimas
    @ygordimas 6 лет назад

    Amazing video with clear explanations!

  • @erroldtumaque3430
    @erroldtumaque3430 3 года назад

    Clear and concise my dude
    Also my mind was blown several times watching this dear lord

  • @fvgoya
    @fvgoya 6 лет назад

    Thank you!!! Best video about css grid EVER!!!!

  • @pratiksrma3728
    @pratiksrma3728 2 года назад

    I just wanna say Thank you so muchhhhhhhh! Your voice is very soothing and your teaching is sublime.

  • @tahsinalmahi8769
    @tahsinalmahi8769 5 лет назад

    Great video! This tutorial helps me a lot! Thanks.

  • @simetric6551
    @simetric6551 5 лет назад

    This tutorial is GOLD.

  • @litonhumayun
    @litonhumayun Год назад

    This has already become my live saver. Thanks a lot for this wonderful tutorial.

  • @pablotruffa588
    @pablotruffa588 Год назад

    I ve been reviewing css grid and this is by far, the best free course i ever seen.

  • @angelasantos5786
    @angelasantos5786 4 года назад +2

    I am not a native speaker but I could understand every single word in this video. Wow. You are awesome. Excellent class.

  • @victorveloso226
    @victorveloso226 Год назад

    Thank you very much!! It helped me a lot!! I appreciate your work and the knowledge you gave us!

  • @Evuce1000
    @Evuce1000 5 лет назад

    Clear explanation, love it!

  • @RobertoCarlosMena
    @RobertoCarlosMena 5 лет назад +1

    it was awesome! thanks for sharing good contents!

  • @bahadircolak
    @bahadircolak 5 лет назад +9

    Perfect tutorial! I want to click the like button ten times... Thanks for this.

    • @nitinadarsh
      @nitinadarsh 3 года назад +1

      it wont make any difference, you have to click it odd number of times😅😅😅😅😅

  • @solusquinto3086
    @solusquinto3086 2 года назад

    Fantastic course!!!! Thank you so much!!!! Learned a lot in a fraction of time!!!!

  • @roeltaga
    @roeltaga 6 лет назад +10

    *Course Sections:*
    00:00 - Course Introduction
    04:49 - Your first grid
    08:04 - Fraction units and repeat
    11:47 - Positioning items
    18:27 - Template areas
    23:19 - Auto-fit and minmax
    27:06 - Implicit rows
    29:06 - An awesome image grid
    35:57 - Named Lines
    41:25 - justify-content and align-content
    44:17 - justify-items and align-items
    47:35 - Auto-fit vs. auto-fill
    49:40 - Creating an article layout
    57:38 - Grid vs. Flexbox
    Hope it helped!

  • @9nikolov
    @9nikolov 6 месяцев назад

    Thank you so much for this course, I just finished watching it today ❤❤❤

  • @rustamov_vlogs
    @rustamov_vlogs 4 года назад

    Awesome tutorial, thank you!

  • @adamsden
    @adamsden 6 лет назад

    Thank you for the very informative video tutorial.

  • @oufcena5092
    @oufcena5092 4 года назад +11

    Grid blueprint
    ⌨️ 11:45 4. Positioning items
    ⌨️ 18:28 5. Template areas
    ---
    Responsive layout with no media queries
    ⌨️ 23:18 6. Auto-fit and minmax
    ⌨️ 27:07 7. Implicit rows
    ---
    Fill-up grid gaps in case of spanning items
    grid-auto-flow: dense;
    ⌨️ 29:06 8. An awesome image grid
    ---
    justify-content: space-evenly;
    ⌨️ 41:25 10. Bonus: Justify-content and align-content
    ---
    You can get rid of that space by positioning spanning items & using z-index: -1; & self-align: end; & use padding
    ⌨️ 49:39 13. Bonus: Creating an article layout

  • @sharonsmart81
    @sharonsmart81 8 месяцев назад

    i have watched over 10 grid tutorials and it always got me confused. The way you teach is nicely paced like teaching a learner. Others are so fast and assume you know some things. keep it up. the best grid tutorial ever!!!

  • @madhusudanrao1865
    @madhusudanrao1865 2 года назад

    This is how you teach. Have watched many. The best!!

  • @gersonadr2
    @gersonadr2 2 года назад

    Very cool tutorial! I feel like I can create crazy layouts now!

  • @shoaibullahkhan8237
    @shoaibullahkhan8237 5 лет назад

    WOW! scrimba is amazing you can edit directly in the video

  • @miks4496
    @miks4496 5 лет назад

    Wow! Thanks! Scrimba is amazing!!

  • @beautifulllalubabu1701
    @beautifulllalubabu1701 2 года назад

    Thanks for this video.
    CSS Grid basic to advance level everything you covered in this video.

  • @AM-oe7ix
    @AM-oe7ix 5 лет назад +1

    Nice, tutorial. Thanks for sharing

  • @alexandergarcia-yo6kw
    @alexandergarcia-yo6kw 3 года назад

    I've had fear to frontend like thwo years (I learned UI by the hard way using pyqt), but this is amazing and surprisingly easy, thank you so muuuuch!

  • @Drvo3
    @Drvo3 5 лет назад

    veeeeery nice tutorial! :) thank you!

  • @wudanclanwealth7660
    @wudanclanwealth7660 6 лет назад +1

    wow like. this course is flawless doe

  • @pitc5793
    @pitc5793 4 года назад

    Extremely clear and useful; thanks.

  • @danutzz8
    @danutzz8 4 года назад

    cool ---great course! ;) keep them coming!

  • @dtawantawng5131
    @dtawantawng5131 2 года назад

    Wow, just wow. Best intro to grid video on YT, hands down.

  • @iamwaiyanminhtet
    @iamwaiyanminhtet Год назад

    I was finding resource to get solid understanding of css grid and this explained in details. Really helpful even though it was from four years ago. Thanks

  • @barryadrianallen
    @barryadrianallen 5 лет назад +1

    Fantastic content. Very well explained. Much appreciated 👍🏼

  • @Lucifer_movies
    @Lucifer_movies 2 года назад

    Hands on the best course on CSS grid ever !!!

  • @ishahzaibkhan
    @ishahzaibkhan 2 года назад

    Great Explanation! Thank you.

  • @UltraDraft
    @UltraDraft 6 лет назад +30

    wow this is much better than bootstrap! Thank you very much.

    • @OG_CK2018
      @OG_CK2018 4 года назад

      I don't know why but your profile pic looks like Mr beast having a moustache

    • @UltraDraft
      @UltraDraft 4 года назад

      @@OG_CK2018 😂😂😂
      He has a mustache though, doesn't he?

    • @OG_CK2018
      @OG_CK2018 4 года назад

      @@UltraDraft oh lol i forgot

  • @ferhatbeztout1447
    @ferhatbeztout1447 3 года назад

    So clear, this must be the first video appearing when searching grid css. Like it

  • @yadneshkhode3091
    @yadneshkhode3091 4 года назад +6

    THE BESSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTT TUTORIAL ON WHOLE RUclipsEEEEEEEEEEEEEE !!!!!!!!!!!!!!!!!!!!!! THANKSSSSSSSSSSSSSSS

  • @abhayshekhawat8391
    @abhayshekhawat8391 2 года назад

    Per Harald you are G.O.A.T just loved your hard work man !!

  • @ln9808
    @ln9808 6 лет назад

    Great course, thanks a lot!

  • @ashwinikumar3721
    @ashwinikumar3721 3 года назад

    great lecture on grid, really helped me a lot :)

  • @michaeldalip
    @michaeldalip 5 лет назад

    very nice work!, thanks mate.

  • @tylercode2207
    @tylercode2207 2 года назад

    Best tutorial out there...You are a G...Keep going!!!!

  • @romarioreid6310
    @romarioreid6310 4 года назад

    Was struggling to learn this concept on codeacademy and you made it very easy to understand thank you very much