Master CSS container queries and boost your web design skills!

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

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

  • @PicSta
    @PicSta 2 หลายเดือนก่อน +5

    The best video I've seen about container queries so far. Well explained, straight to the point.

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน

      Thank you! Appreciate your feedback.

  • @theintjengineer
    @theintjengineer 2 หลายเดือนก่อน +2

    Simply the best🎉.
    THANK YOOOOU🙌🏾.

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน

      Glad you liked it!

  • @joel-rg8xm
    @joel-rg8xm 2 หลายเดือนก่อน +1

    simplistic yet effective approach to responsive layouts, your videos are becoming a must-watch for me. I wish you were a backend instructor as well.

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน +1

      Thank you! The goal is to keep videos short and simple. As for the backend - I'll leave that to the pros behind the scenes 😊

  • @UmarJAN-bz2nq
    @UmarJAN-bz2nq 2 หลายเดือนก่อน +1

    Thank you sir

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน

      You’re welcome!

  • @biggand8520
    @biggand8520 2 หลายเดือนก่อน +1

    Great and straight forward)) Is there any way to center the last element by default if the count of items in the last line is less than in all previous?

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน +1

      Thank you! I don't think there is a default way to keep the last hanging item center-aligned because that'll break the sole purpose of the grid. But, if you're okay with losing the flexibility, you can target the item specifically and place it wherever you like or use the flexbox.

    • @PicSta
      @PicSta 2 หลายเดือนก่อน +2

      Without having that tested, but there could be a way by using :nth-of-child(). Depending on flex or grid, what's being used you can set the width, change flex-basis: 100% or flex grow to 1. It needs a bit of troubleshooting, as said, just straight from my mind ;-)

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน +1

      Thanks for sharing the idea! But, flex-basis and flex-grow will work with the flex container, where we can use justify-content for the center alignment of the last item. There are some hacks using the nth-child pseudo-class for the grid layout, but as I said, we'll have to compromise with the flexibility.

    • @PicSta
      @PicSta 2 หลายเดือนก่อน +1

      @@OptimisticWeb yes sir

    • @OptimisticWeb
      @OptimisticWeb  2 หลายเดือนก่อน

      👍

  • @AlThePal78
    @AlThePal78 หลายเดือนก่อน

    is this the mobile first approach because I do have trouble with this

    • @OptimisticWeb
      @OptimisticWeb  หลายเดือนก่อน

      Container queries work with both mobile-first and desktop-first approaches - it all depends on how you write your CSS. This example is based on mobile-first, but you can easily switch to desktop-first, just like with media queries.