CSS GRID: auto-fit and auto-fill - 12 of 25

Sdílet
Vložit
  • čas přidán 26. 04. 2018
  • Grab the entire FREE course, starter files and finished solutions over over at CSSGrid.io. Subscribe for more web development videos like this!
  • Věda a technologie

Komentáře • 18

  • @MaksymMinenko
    @MaksymMinenko Před 3 lety +12

    It really comes to this:
    auto-fill - "prefer the minimum" (of the minmax),
    auto-fit - "prefer the maximum" (of the minmax).

  • @ITSKRIMO
    @ITSKRIMO Před 2 lety

    honestly, you are my favorite web dev youtuber.

  • @Xardas_
    @Xardas_ Před 2 lety

    It's no longer over my head thanks to you.

  • @UserProxy1
    @UserProxy1 Před 5 lety +2

    3:23 Yo Wes, according to MDN empty repeated tracks are collapsed as default behaviour, an empty track is one with no in-flow grid items placed into or spanning across it. The definition on auto-fit goes on to read: "A collapsed track is treated as having a fixed track sizing function of 0px, and the gutters on either side of it collapse." Src: repeat() - CSS: Cascading Style Sheets | MDN

  • @sharhanalhassan7352
    @sharhanalhassan7352 Před 3 lety +3

    You try one, and if it's not it then try the other one and that is it

  • @artihlec
    @artihlec Před 2 lety +1

    "auto-fill FILLS the row with as many columns as it can fit. So it creates implicit columns whenever a new column can fit, because it’s trying to FILL the row with as many columns as it can. The newly added columns can and may be empty, but they will still occupy a designated space in the row.
    auto-fit FITS the CURRENTLY AVAILABLE columns into the space by expanding them so that they take up any available space. The browser does that after FILLING that extra space with extra columns (as with auto-fill ) and then collapsing the empty ones."
    -Sarah

  • @ranjanrnj6864
    @ranjanrnj6864 Před 4 lety +3

    Well explained, tq bro

  • @wbalandin
    @wbalandin Před 3 lety

    "(...) well you try one and if it's not what you want it's probably the other one" :D

  • @bklock7
    @bklock7 Před 2 lety +1

    What's this HTML authoring tool called?

  • @NeelSandellISAWESOME
    @NeelSandellISAWESOME Před 4 lety

    Why did you use a custom variable for the color yellow

    • @KevinKamauk
      @KevinKamauk Před 3 lety

      He likes that specific shade of yellow, so instead of writing the hex or rgb value each time, its better to use a variable to avoid repeating yourself

  • @peristiloperis7789
    @peristiloperis7789 Před 6 lety +2

    What do you do about IE 11? Grid doesn't work in IE11!

    • @IHe4rtMus1c
      @IHe4rtMus1c Před 6 lety +16

      nobody cares about ie, lol

    • @scott-123
      @scott-123 Před 6 lety +6

      just add a @supports query on the beginning and then do the same thing in flexbox.

    • @robgillanofficial
      @robgillanofficial Před 5 lety

      I have started using tablet/mobile styling for IE in grid areas. Why fight to make an antiquated browser work unless you NEED compatibility for business reasons.

    • @TheCodeCreative
      @TheCodeCreative Před 4 lety

      It has partial support with prefix -ms-

  • @leakyabstraction
    @leakyabstraction Před rokem

    This metal intro and outro is actually pretty annoying