Why I don't use flex-wrap anymore (and what to use instead)

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

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

  • @LongPeter
    @LongPeter День назад +27

    3:30 overflow-x: auto; (rather than scroll) if you don’t want to force scroll bars to be shown when there isn’t enough content to need them.

  • @mattwood8659
    @mattwood8659 День назад +16

    The first solution can easily be solved with justisy content start. Going the media query route is over kill

  • @codedjango
    @codedjango День назад +4

    The 3rd solution is what I use the most....thanks anyways for this tutorial 👍

  • @lukas.webdev
    @lukas.webdev День назад +5

    Great video! I completely get the point you're making, and it’s a fresh perspective. I really appreciate how you broke down the alternatives and explained their advantages so clearly. That said, all of the solutions you mentioned are very useful and probably still have their specific use cases. I also think there are still situations where flex-wrap is the best tool, so I wouldn’t dismiss it entirely. Keep up the awesome work! 🔥

  • @Karaya715
    @Karaya715 День назад

    Does everyone else recognize how many big named sites can use this video??
    Fantastic work! Thank you!

  • @wendysburgers4326
    @wendysburgers4326 День назад +6

    CSS Grid 💯

  • @PicSta
    @PicSta День назад +1

    For me, CSS grid is the better solution in most cases for layout, structure of the whole website, but for content, like cards content, I would use flex box. Both alignment solutions have their pros and cons and I think you use it as mentioned, grid for layout/structure and flex box for the content inside "boxes, cards ...", then you can benefit from the best of both worlds.

    • @bn5055
      @bn5055 13 часов назад

      "Grid for page layout, flex for component layout" is a rule of thumb that has served me well.

    • @PicSta
      @PicSta 11 часов назад

      @@bn5055 Exactly, I think that was the purpose of them both.

  • @petarkolev6928
    @petarkolev6928 10 часов назад

    Yet another awesome video!

  • @UberDurable
    @UberDurable 21 час назад

    Very clear and concise!

  • @AjvarRelish
    @AjvarRelish День назад

    Would like to see more about the JS used to scroll the content using buttons!

  • @omaarshek4123
    @omaarshek4123 14 часов назад +1

    Please can you help us with a video on workflow of how you record and edit your youtube videos

  • @AbdulRahman-yp6oy
    @AbdulRahman-yp6oy День назад

    Good , Excellent , easy to understand 💕💕😊😊❤❤👍👍
    keep uploading such kind of videos

  • @NancyParker-k6e
    @NancyParker-k6e 17 часов назад

    Thank you so much for this amazing video! I need some advice: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How should I go about transferring them to Binance?

  • @RoldanMengote
    @RoldanMengote День назад

    Nice video, thank you!

  • @abdulrenishr
    @abdulrenishr День назад

    Cool n informative

  • @a7mdbest15
    @a7mdbest15 День назад

    Thanks dude very nice

  • @Byson94
    @Byson94 День назад +1

    nice video!

  • @Elonsol
    @Elonsol 6 часов назад

    Very awesome

  • @SantoKhan-mk3hp
    @SantoKhan-mk3hp День назад +1

    No. Flex wrap is very important with flex grow. Very important.

  • @DreamsInMotion37
    @DreamsInMotion37 15 часов назад

    I'm thinking about buying the HTML & CSS course but how long would the course take to finish?

  • @ezwtwrziehag1736
    @ezwtwrziehag1736 20 часов назад

    @3:40, that's not a real world case scenario. you either have mobile, desktop or laptop but not that display size.. so flex wrap is just fine

  • @JawsoneJason
    @JawsoneJason День назад +1

    Doesn't think adding `align-items: start` is intuitive...
    Proceeds to propose more complicated solutions instead.

  • @Adnan_Inspires_Official
    @Adnan_Inspires_Official День назад

    Nice :D

  • @ramstylen6813
    @ramstylen6813 День назад

    maxx- width might gonna hep here.

  • @yuriyzadorozhnyi3849
    @yuriyzadorozhnyi3849 День назад

    Дякую Вам ! Привіт з України!

  • @zainuldin9095
    @zainuldin9095 День назад

    you forget to mention CSS columns

  • @AbhishekTiwari-cu5xn
    @AbhishekTiwari-cu5xn День назад

    👍🏿

  • @Amar_Seid
    @Amar_Seid День назад

    Wowo

  • @LAG.survivor
    @LAG.survivor День назад

    Yo I was literally just searching this problem on Google. Thanks and great vid 🙏
    👨‍🌾 Crappy Farm 💩