CSS Grid Alignment & Justification Without the Guesswork

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 18

  • @balaclava351
    @balaclava351 11 ชั่วโมงที่ผ่านมา +7

    What you said about thinking of the parent and the grid as being different really helped this click for me. Thanks!

  • @seandleary
    @seandleary 10 ชั่วโมงที่ผ่านมา +3

    I never realized that the parent was not the grid - until now! I thought that when we declared display: grid on an element, the element itself in essence 'became' a grid. I think I've heard that said before: "When you declare display grid, it becomes a grid parent", so I was confused why something like justify-content: start didn't shrink the whole element to the left.
    Very helpful as always Kevin!
    Minor note: You could consider mentioning that you added a little default padding on the child elements, just so it's super clear why the numbers don't fully slam to the top, left, right, etc, within each cell. I'm sure 95% of viewers will realize you've added some padding to these elements, but perhaps it could confuse people new to CSS.

  • @lukepetrolekas188
    @lukepetrolekas188 9 ชั่วโมงที่ผ่านมา +1

    I've been watching your channel for a while now and I found this video to be one of your best. It was well organized and scaffolded to demonstrate different scenarios of how Grid behaves and distinguish between the different alignment options. For myself it was good to learn about the stretch keyword as I hadn't come across that, as well as the assignment option buttons right in devtools.

  • @serkanalkan8150
    @serkanalkan8150 5 ชั่วโมงที่ผ่านมา

    Thank you for multiple clarification

  • @DevMeloy
    @DevMeloy 11 ชั่วโมงที่ผ่านมา +1

    Great explanation!

  • @aakoss
    @aakoss 9 ชั่วโมงที่ผ่านมา

    Explained very nicely!

  • @jarekwasilewski8891
    @jarekwasilewski8891 11 ชั่วโมงที่ผ่านมา

    Great reminder, thx Kevin ;)

  • @Tiger1AuasfE
    @Tiger1AuasfE 9 ชั่วโมงที่ผ่านมา

    Very nice 👍

  • @VideoNOLA
    @VideoNOLA 11 ชั่วโมงที่ผ่านมา

    Still eager for Anchor Positioning to go mainstream!

  • @hasokeric1362
    @hasokeric1362 8 ชั่วโมงที่ผ่านมา +1

    Make one about nested and sub nested grids

    • @jasonwhitson7693
      @jasonwhitson7693 7 ชั่วโมงที่ผ่านมา

      I'd like to see subgrid paired with this. I think that would be helpful as well.

  • @OCEMTechZone
    @OCEMTechZone 2 ชั่วโมงที่ผ่านมา

    🎉

  • @bharatdubey83
    @bharatdubey83 8 ชั่วโมงที่ผ่านมา

    Can someone please give me the link of the flexbox video?

  • @filippotinnirello
    @filippotinnirello 7 ชั่วโมงที่ผ่านมา

    I thought I was the only one who could never memorise which alignment is vertical, which is horizontal

  • @LokiDaFerret
    @LokiDaFerret 11 ชั่วโมงที่ผ่านมา +10

    Align-content is poorly named. I think "align-grid" / "justify-grid" would be 10x more intuitive.

    • @MercurySteel
      @MercurySteel 9 ชั่วโมงที่ผ่านมา +3

      Align-content and justify-content properties are not unique to grid elements. They are used in both Flexbox and Grid Layout

    • @b4rt1j1
      @b4rt1j1 6 ชั่วโมงที่ผ่านมา

      align-flid would be nice

    • @PrinzEugen39
      @PrinzEugen39 3 ชั่วโมงที่ผ่านมา

      align-grex could work too