Learn CSS Flexbox in 6 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • In this video, you'll learn how to create flexible layouts using CSS Flexbox in just 6 minutes. We'll look at key properties such as flex-direction, flex-wrap, flex-grow, flex-shrink, and flex-basis. Finally, I'll show you how to align and distribute items along the main and cross axes using justify-content and align-items.
    Video content:
    00:00 Flex
    00:15 Inline-flex
    00:25 Flex-direction
    01:05 Wrap
    01:37 Flex-grow
    02:43 Flex-shrink
    02:57 Flex-basis
    03:32 Flex shorthand
    04:28 Justify-content
    05:10 Align-items
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @bluehawkfire55
    @bluehawkfire55 ปีที่แล้ว +21

    finally, a flex tutorial that isnt 20mins long. I've been starting to hate CSS and rethinking if I even want to do front-end. I figured I should stick it out a little longer and it'll get easier and more enjoyable. This was really simple and to the point.

    • @josh27ofto
      @josh27ofto ปีที่แล้ว

      You should try Kevin Powell's tutorials. It helps me a ton

    • @zaid4708
      @zaid4708 ปีที่แล้ว +1

      Your attention span is so low mate

    • @royandescartes
      @royandescartes ปีที่แล้ว

      you havent seen "slaying the dragon" then. Ramzi is a CSS God.

  • @schubertafonso8392
    @schubertafonso8392 ปีที่แล้ว +7

    This is the tutorial we always needed but never had!!!!
    Will recommend it to anyone who wants to learn flex-box😙

    • @schubertafonso8392
      @schubertafonso8392 ปีที่แล้ว

      Can you please make a video on grid layout it still haunts me to this day 😅

  • @cm3462
    @cm3462 ปีที่แล้ว

    Dude, welcome to TH-cam. Instant subscribe. I have a feeling this channel is going to be great. Love your teaching style, your pace, and your voice. Thank you.

  • @franznbr6591
    @franznbr6591 ปีที่แล้ว +12

    straight to the point, thanks😁

  • @9To5Digitale
    @9To5Digitale ปีที่แล้ว +2

    Thank you 🙏🏻

  • @bogush31
    @bogush31 ปีที่แล้ว

    Best. Thanks👍

  • @donniedamato
    @donniedamato ปีที่แล้ว +15

    I like how the thumbnail is impossible to do with flexbox.

    • @rarizalx
      @rarizalx ปีที่แล้ว

      Funnily enough, I did that in flexbox because I still don’t understand grid 😂

    • @e.vilcorp
      @e.vilcorp ปีที่แล้ว +6

      Wym, you can easily create it with flex box

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

      Not impossible, just far more better to just use grids

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

      You just need to define widths on each square/rectangle in the grid and give wrap to flex-wrap. However you’re right in the sense that you can’t fix the grid’s columns and rows though with flexbox

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

      Probably grid

  • @rameenana
    @rameenana ปีที่แล้ว +1

    Love your video man. I was looking for a proper flex box tute for someone I’m sorta mentoring and every bloody video is full of unnecessary crap and so long. Your video is to the point, good pace for a beginner, and the way the IDE is laid out is very easy to visually follow.
    Thanks a lot and since you didn’t ask me to like, subscribe, and share, I’m definitely gonna do that.
    Please stick to this method of tutorial making and I promise you’ll have a massive following.
    Appreciate your work. Cheers mate!

    • @amin-mousavi
      @amin-mousavi  ปีที่แล้ว +1

      Thank you appreciate it 🙏🏽

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

    I LIKE IT!

  • @studioak90
    @studioak90 19 วันที่ผ่านมา

    Flexbox and grid common part of every devs

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

    Thanks

  • @shakilahmed6870
    @shakilahmed6870 ปีที่แล้ว

    Do a same kind of video on grid please

  • @ryuk_shinigami
    @ryuk_shinigami ปีที่แล้ว +1

    Great video, i would suggest to increase your pace a little.

  • @shivaamchourasia
    @shivaamchourasia ปีที่แล้ว

    Great explanation.
    Could please answer this. I was asked to do this in interview.
    HTML
    ----------
    Sample paragraph
    Heading One
    -----------
    CSS
    -----------
    p {width: 220px; padding: 10px; background: gray; }
    h1{width: 220px; background: green; }
    -> i was told to make this align without changing the width
    Could you please answer this or make a video on this