Laying out Forms using Subgrid

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 24

  • @HazimSami
    @HazimSami 5 років тому +31

    These mini-series are absolutely fantastic! Wonderfully executed and very informative.

    • @frozen_tortus
      @frozen_tortus 2 роки тому

      Agree, I love everything Miriam does.

  • @Avean
    @Avean 5 років тому +2

    wow this is so nice. Formatting forms can be a nightmare the old way and this is so easy formatted and clean to read.

  • @MovieHeretic
    @MovieHeretic 4 роки тому

    Thanks for the clear example of using subgrid. Was unaware of this option which just cut out ten or so lines of css from our form definitions, loved the fallback as well.

  • @PaulMcCannWebBuilder
    @PaulMcCannWebBuilder 5 років тому +1

    Nice to know. I realize the example is for the demo, but I'd probably resort to putting the label and input elements side by side, rather than nest them. Also as a side note: the fieldset element triggers a bug in Chrome and grid doesn't work on it at all for some some reason.

    • @PavelSatrapa
      @PavelSatrapa 5 років тому

      Putting them side by side was my idea too when I saw the video. Using label for=... instead of nesting input into label leads to simpler HTML (no need for nested span any more) and simpler CSS (no need for inheriting grid features and subgrid). I think this is a bad example.

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 2 роки тому

    Very interesting. I'll try it out

  • @VicZ582
    @VicZ582 4 роки тому +2

    I really like your editor theme such as attribute name is in a different font, how did you do that?

  • @MarcHaunschild
    @MarcHaunschild 4 роки тому

    I really love this short explanations of a single css use case or property. But It'd like to add a warning for this particular one: because of accessibility and usability reasons you should place labels on the left top of the input field... - so maybe forms are not the best example for sub grids...

  • @supergodinez1350
    @supergodinez1350 4 роки тому

    why did you use pann for the label text insted of just witing the text using the label tag, what's the benefit ?

  • @rossgeography
    @rossgeography 4 роки тому

    excellent

  • @reknaanker4220
    @reknaanker4220 3 роки тому

    wouldn't
    label { display:contents }
    also solve problem without subgrid?

  • @mateusvahl5072
    @mateusvahl5072 4 роки тому

    Fantastic!

  • @datmanUK
    @datmanUK 4 роки тому +1

    Subgrid in safari will prob be out in 2022

    • @porglezomp7235
      @porglezomp7235 Рік тому +1

      You were completely correct (September 2022) and it still managed to ship before Chrome.

  • @whiterabbit7446
    @whiterabbit7446 5 років тому

    Do you really need the CSS inside the form {...} block? I don't think it does anything except the grid-column-gap and margin-bottom.

  • @aram5642
    @aram5642 Рік тому

    March 2023. Edge and Chrome still not there.

  • @emberchord
    @emberchord 5 років тому

    Couldn’t you also achieve something similar by setting the .field to display: contents;? Inside a @supports not(grid-template-columns: subgrid)?

    • @emberchord
      @emberchord 5 років тому

      Mozilla Developer thanks for the reply! I didn’t know about those potential accessibility concerns

  • @tfsoa
    @tfsoa 5 років тому +1

    Subgrid should have been shipped with Grid together.

  • @LordDursh
    @LordDursh 2 роки тому

    change the name of the channel to "cristo computer" pls

  • @JohnSmith-op7ls
    @JohnSmith-op7ls 10 місяців тому +1

    No, no, no. No. Nope. Find another way to troll for attention.

  • @starmountpictures
    @starmountpictures 4 роки тому

    is this a dude or female?