[css] Flex vs Grid

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • in*

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

  • @ZeryusXD
    @ZeryusXD Год назад +20

    Love the simple explanations and the accompanying visualisations to help!

  • @astrahcat1212
    @astrahcat1212 3 месяца назад +2

    Thanks for no 🎶🎶

  • @EverydayCode
    @EverydayCode 3 года назад +4

    This part of CSS was always confusing. Great explanation!

  • @cytuber
    @cytuber 3 года назад +3

    Nice simple overview I'm sure will help most people get a basic understanding on when to use what. Thanks

  • @Youforlia
    @Youforlia Год назад +2

    WOW! this is only explanation I'll ever need. THANK YOU!!

  • @ericlee6029
    @ericlee6029 3 года назад +6

    I'm sort of obsessed with the editing in your videos right now. Would you mind sharing any keynote file that you've used for one of these videos so I can see how it was done?

  • @quickmaths4762
    @quickmaths4762 Год назад +2

    The whole video was clear up until the very end. You were showing how easy & seamless it is to change. But then at the end we have a red box at the bottom which has 'span 2' although it is a green-box declared by .green class?
    I am confused. Does the grid-template areas make grid-area redundant, i.e. could you have deleted all of the old code with span and stuff or not?

    • @theteachr
      @theteachr  Год назад +1

      No old code deletion stuff occurred. But below is an explanation.
      `grid-template-areas` and `grid-area` work _together_. At the end, `grid-column: span 2` was what became redundant. More precisely, it got ignored due to `grid-area`. I admit I didn't focus on explaining how these props worked, but here's a deeper explanation about what happened at 4:30.
      The areas prop on the container say that element with `grid-area` = `red-box` should occupy the two cells in the last row. The `grid-area` is `red-box` on `.red`. This makes the red box occupy the last column. Additionally, the areas prop on the container say that an element with `green-box` as their `grid-area` will be placed at the top right position of the container. `.green` with its `grid-area` makes it sit at the top right.

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

      @@theteachr Oh ok alright so the old zombie code could've just been deleted makes sense

  • @Nightmare78hAlo
    @Nightmare78hAlo Год назад +1

    Great video, did a quicker and better summary plus comparison of it than some 20+ min videos

  • @sergei1660
    @sergei1660 2 месяца назад

    What are the first 15 rows of CSS file?!
    I've tried this exercise on my laptop, but it didn't work the same way as in this video and I'm still confused about how the things work.
    Some piece of CSS code is obviously not shown in this video and I'm not able to figure it out for now.

    • @theteachr
      @theteachr  2 месяца назад +1

      The CSS file is shown in its entirety, but I probably had some `center.css` and / or `reset.css` file linked in the HTML which I don't show in the video.

    • @sergei1660
      @sergei1660 2 месяца назад

      @@theteachr , thanks for reply. I'll try to play with that again.

    • @mkpoutoinyang5359
      @mkpoutoinyang5359 13 дней назад

      @@theteachr Hello, please can you give the code for this? That'll really help me to follow everything better. My divs fill the entire width of the screen, and it's confusing

  • @sempiterno3243
    @sempiterno3243 10 месяцев назад

    Love it, short and well explained, hate loooong blahblahblah

  • @orangelimesky
    @orangelimesky 3 месяца назад

    grid-template-areas looks like it can be very confusing since the markup is not changed but you're re-arranging the placement via css...

    • @theteachr
      @theteachr  3 месяца назад

      Changing the markup would be more painful.

    • @orangelimesky
      @orangelimesky 3 месяца назад

      @@theteachr Not really

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

    gerat explanation and animations, you sir indeed are the teachr

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

    Ничего не понял, но очень интересно))) если бы не так быстро объясняли, а чуть помедленнее и с расстановкой, то может быть и понял

  • @taimoorfazal8832
    @taimoorfazal8832 3 месяца назад

    Amazing and brief tutorial

  • @Ash-tt2jo
    @Ash-tt2jo 10 месяцев назад

    hey can you tell me what ide you are using and how did you split screen

    • @theteachr
      @theteachr  10 месяцев назад +1

      VS Code and Chrome split by macOS.

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

    i am confused. you say 2 rows, but then an arrow is going from top to bottom to illustrate this.
    isnt a ROW, from left to right?
    isnt a column from top to bottom?
    I am confused.

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

      so after watching the VSCode example i understand what you mean. tricky stufff, flexbox

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

      Arrow was showing the direction of how rows **flow** (top to bottom).

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

    Thanks nice tutorial!

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

    great explanation. I was expecting to see millions of views but only 6k?? that got me. thank you😂

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

    Tremendous tutorial

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

    Great explanation!

  • @shoaibshareef1359
    @shoaibshareef1359 7 месяцев назад

    WOW

  • @Kevo-h7i
    @Kevo-h7i 7 месяцев назад

    What do you make your animations with?

    • @theteachr
      @theteachr  7 месяцев назад

      Used Keynote for this one.

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

    that was awesome!

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

    $