Compare Flex Grow and Flex Shrink within a Flexbox Container

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

КОМЕНТАРІ • 26

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

    I’ve been a dev for a decade. Professionally for half of that. These properties have always been a bit fuzzy to me, in spite of TONS of content I’ve consumed. Your explanation here - “three times faster” - has straight up changed my life. Total eureka moment. Thank you! MAKE MORE CONTENT!

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

    Great Video. Love yoour tone and speed on teaching this content! Subscribed and looking forward to more videos

  • @ligmadick3401
    @ligmadick3401 4 роки тому +4

    "Display: Flex" is amazing. Why are there so less people talking about this cool feature.

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

      i think, viewport is quite easy compared to flex maybe thats the reason flex is kept on the side....

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

    Great explanation and presentation!

  • @4.otechnologysaikumar829
    @4.otechnologysaikumar829 3 роки тому

    Goood explanation.............understood clearly....thank you so much.....

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

    thank for your video. God bless you

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

    perfect explanation

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

    Very well explained!

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

    Thank you so much, I was really confuse I’m flex. and flex. grow especially

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

    Hell yeea, awesome content man! thank you

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

    i just started learning

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

    Hi Thanks for this valuable information.
    Sir how you can changing the width in the .

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

      The is an inline element (i.e. its display property is set to "inline" by default), which means that the element's size is determined only by its content (that's why setting its width or height has no effect). If you want to be able to set a 's width, you need to set its display property to "inline-block" (or "block" but in that case I would use a instead).

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

      @@mgerry1992 Thanks you it's nice to replying .

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

    Thanks for great video. How did you code to automaticly figure out the width of each box?

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

      I think that’s the JavaScript he mentions - the ID of each box is captured in some JS using getElementById and THEN using offsetWidth. He captures the resulting number and displays it in those little text fields with a JS variable (use “let” not “const”). Even easier with React!

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

    Hi I found the way thank you very much.

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

    Thanks for the video..!!

  • @TeeeJayy_
    @TeeeJayy_ 2 місяці тому

    That menubar.... oh god... i can't take it.

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

    that was helpfull no cap

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

    nice nice nice pleaes keep up
    please make a full responsive web tutoria

  • @YousifAtique
    @YousifAtique 8 місяців тому

    4:10 what would "three times faster" mean???

    • @SixMinutesSmarter
      @SixMinutesSmarter  8 місяців тому

      That is tricky. If the browser viewport is stretching wider, the item with flex grow 3 will grow at 3 times the rate of the other flex items. I generally only use flex grow of 0 or 1.

    • @YousifAtique
      @YousifAtique 6 місяців тому

      @@SixMinutesSmarter Thanks, for your response.