Flexbox Tutorial - Flexbox containers

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

КОМЕНТАРІ •

  • @eliehaddad9561
    @eliehaddad9561 4 роки тому +131

    How can anyone with his/her full brain capacity even dislike this video? The content, the flow, and Kevin are amazing!

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

      maybe by mistake 🤔

    • @IamPetrus
      @IamPetrus 3 роки тому +1

      because we love Kevin!

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

      I totally agree with, Kevin is incredible and it's impressive someone can give him a dislike.

    • @anetthorvath8315
      @anetthorvath8315 3 роки тому +2

      Trolls will be trolls I guess.

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

      It's not that they don't like the video. It's just that they are unhappy and are currently watching the video.

  • @nuttaphonr.6498
    @nuttaphonr.6498 3 роки тому +62

    Thanks for cool Flexbox Tutorial
    4:05 Flex Direction
    5:24 Flex Wrap
    6:45 Setting nowrap will ignore width of item
    7:50 Flex-flow = flex-direction+flex-wrap
    9:33 Flex justify-content
    11:09 align-items defaults is "strech"
    11:43 align-items works as cross axis (if you are column then it row)
    13:06 align-items Baseline align text same level
    15:58 align-contents align all content in flex

  • @salentipy
    @salentipy 7 місяців тому +1

    Just wanted to say how much I'm enjoying your videos, Kevin. You're a great teacher!! :)

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

    I've been skipping learning flexbox as a front-end developer I developed a website and after using various media queries for various screen sizes I discovered that my website is still not responsive. I saw your 21 days responsive design lesson and ever since responsiveness as been a simple task for me to perform using my CSS.
    Thanks for this KP.

  • @jamie7622
    @jamie7622 3 роки тому +1

    2.2k likes. 10 dislikes. That's a great ratio and a testament to your quality of content. Keep up the good work Kevin, you do a great job in these videos.

  • @dableb
    @dableb 2 роки тому +1

    0 complaints, what a flawless video. Thank you for all you do, Kevin

  • @rokd-o5k
    @rokd-o5k 2 роки тому

    Mann, this is very helpful. I really love the way you explain, how you express yourself. It's so clean and simple, it's like the KISS rule. "Keep it simple"

  • @MuhammadAhmedAshraf
    @MuhammadAhmedAshraf 2 роки тому +1

    explicitly explained this channel has so much value in it

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

    THIS VIDEO MAN! I can't believe it... you've helped me to break down that flex positioning wall that was blocking my progress. I really can't thank you enough. I actually understand the relationships between justify and align... they're axis (dependant on column or row) and how they position the items. MASSIVE result for me. THANKS

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

    Dear Kevin, all your videos are so brilliant and help me a lot. Thankful Barbara from Germany 😊

  • @whytepencil3672
    @whytepencil3672 3 роки тому +5

    Wow, flex wrap is all I needed. But the video was all my coding career needed. Thanks a ton, Kevin!!!

  • @luisacavalcanti3665
    @luisacavalcanti3665 7 місяців тому

    Your content is amazing. I'm doing the 21days of challenge of Conquering Reponsive Layouts and I'm loving it. Thanks !

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

    Before i start the video i thought i'll never ever clear the concept of flex its so confusing.... but after watching ur video my all doubts are clear. Thank you sir for making the videos like these.... Lots of love and thanks from India.

  • @caybokotze
    @caybokotze 7 років тому +5

    Thanks man! You are changing the world by allowing people the opportunity to learn more about something practical like web development. Great work!

    • @KevinPowell
      @KevinPowell  7 років тому +2

      Thanks so much for your kind words! It's something that I really have a passion for, and hopefully I can help a few people with it along the way 😁

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

    28,000 views, but not even 1000 likes. this definitely worth a watch. appreciate guys. he's doing great job

  • @xAndre-SDM
    @xAndre-SDM 7 років тому +24

    Kevin, yours tutorials are amazing. I started in the Workflow and will watch everything after. I'll watch this after done the others tutorials. Thank you!

    • @KevinPowell
      @KevinPowell  7 років тому +5

      Thanks so much André!! I'm glad you're enjoying my videos!

  • @simeonieroteev4555
    @simeonieroteev4555 6 років тому +7

    Man, you are awesome!! Before I watch the video I knew "How Flexbox works", but after the video I know really how works!! Thank you!

    • @KevinPowell
      @KevinPowell  6 років тому

      Thanks so much Simeon, glad that it's helped!

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

    Kevin Sir your the best teacher for CSS

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

    Kevin, I cannot thank you enough for what you do and how you do it. You are a wonderful teacher and the reason that I have fallen in love wtih CSS 😍

  • @kresimircosic6158
    @kresimircosic6158 7 років тому

    Keep up the videos man. I know you're small now but I like the way you explain stuff to a non-English native speaker like myself.

    • @KevinPowell
      @KevinPowell  7 років тому

      Awesome, glad that I'm clear even if English isn't your native language! Thanks for the vote of confidence 😁.

  • @ga7853
    @ga7853 6 років тому +1

    This is the best tutorial on flexbox I have seen on the net, and you top that with those wonderful links for flex playground, Thanks a million you are the man for any CSS needs.

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

    Kevin Powel is god of CSS!

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

    Hi there, you re solved me for now a small problem i had, to understand some things. Thanks, keep up the good work🎸

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

    Thanks for making this so simple. I've seen some other videos on the same topic but not many can simplify it the way your videos do. Thanks for the help and keep up the good work!

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

    Great instruction! Currently in an online coding bootcamp. Your classes have been a huge help. Thanks!

  • @Soldat.du.christ1
    @Soldat.du.christ1 3 роки тому

    still watching in 2021! Thank you so much Kevin

  • @alexandra.thegreat
    @alexandra.thegreat 3 роки тому

    That's a bit confusing when the flex-direction is set to row and items take up a column space 🙄 but anyway, it is what it is 😁 Kevin you're an amazing teacher, I love your videos, they're superuseful. Keep up the fanstastic work!!!

  • @inestamessi290
    @inestamessi290 7 років тому +2

    i was looking for responsive navbar for mobile phone and i find out your channel
    i just wanna to say thank you and by the way you have amazing videos here keep it up
    u will have more subscribers to ur channel if you keep the great tutorials
    sorry for my bad english
    Thank you

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

    Thank you for providing this high quality tutorials, I started to learn web dev this month and your tutorial thought me a lot😊.

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

    You are an amazing tutor.👏👏👏

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

    Thanks!

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

    You are probably my favorite person

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

    Nice and simple way put together and your tip of using playground is the life saver 👍

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

    @Kevin, You are the CSS to my HTML

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

    Im just gona leave my Thank you comment before even watching the video, there is no way I wont leave this video with flexbox knowledge. Thank you

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

    thank yooouu!! Was able to fix a design problem in my webpage!!

  • @alexmachin1785
    @alexmachin1785 7 років тому +2

    finally a simple video for flexbox 👐👐

    • @KevinPowell
      @KevinPowell  7 років тому +2

      I think some people avoid it because it can come across as complicated. It definately had a lot of properties, but it doesn't have to be hard. I did just realize I should do 4 videos in this series though, because there are some really neat tips and tricks that I should talk about too.

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

    Thank you Sir ! @12:00, very important notice since, if I got it right, the property 'flex-direction : row/column' SWITCHES the x and y axis ! Keep on the good job, please !

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

    Love the way you explain things in short and simple way. It's really helpful. I was looking at your videos to find one about Fixed, Fluid, Adaptive and Responsive layout design concept but couldn't found it. I would really appreciate if you can make one to describe the difference and which one you think is the best. Many thanks.

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

    You’ve been the most helpful person I’ve found. Thanks!

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

      Glad you've found my content helpful!

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

    Thanks cuz I just made a big move in getting comfortable with CSS!! U da 🐐Goat!
    But 1 question about the Position absolute Vs relative explained video tho, I'm kinda losing my mind at how I didn't set the margin of the red box & yet I checked the browser, it showed margin of 100... Whereas in the video u made, u didn't seem to set any margins for your child (red box)
    Is this a default value the browsers have set for you??

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

      Thanks so much!
      As for the margins, by default a div has 0 margin, maybe there was something in your CSS adding it? It might not have been on that specific box, but on all divs or something?

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

    thanks Kevin very much , this was so helpful

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

    You are a lifesaver!

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

    Another amazing tutorial! You made it so easy to watch and understand. Thank you!

  • @dandange
    @dandange 6 років тому

    Kevin, you are awesome, I've learnt so much from your tutorials. Keep the good work!!!

    • @KevinPowell
      @KevinPowell  6 років тому +1

      Thanks so much dangange! Glad to hear my videos are helping you out :)

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

    Thank you for being so helpful! Amazing content!

  • @anitsingh9373
    @anitsingh9373 3 роки тому +8

    "just try one and if it's the wrong one use the other one". And I thought I was just a noob 😂

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

      Brute Force solutions are always the answer 😂

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

    Excellent tutorial

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

    Excellent video, thanks 🙏

  • @zt.5677
    @zt.5677 4 роки тому +11

    You must have heard many times: Thank you!

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

    this as been very helpful

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

    watching this after playing flex zombies is amazing

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

    JusTiFy content ---- i feel you!

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

    love you tutorials Kevin

  • @holysign4633
    @holysign4633 6 років тому +1

    Amazing video.truly the best on flexbox.
    By the way..that single disliker.who???

    • @KevinPowell
      @KevinPowell  6 років тому

      Lol, there always has to be someone!

  • @Ramkirat1991
    @Ramkirat1991 6 років тому

    @kevin powell Awesome Brilliant Outstanding superb
    Thank you!

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

    it seems like `align-items:center` functions the same as `align-content:space-around` in terms of content that has wrapping involved

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

    Should we follow along in VSC when we watch these videos?

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

    01:35 Why all these classes? Couldn't we just select the direct children of the container? Less code in HTML and more DRY (less repetitive).
    03:00 What happens to the margins of the items? Do they still collapse or not? Does it depend on the main direction?

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

    So the main axis goes across but the cross axis goes down.... hmmm not at all intuitive. lol. I love your approach very scientific "use one if its wrong use the other". Man I did that with three wives that didn't work out so well for me. Grab another beer and try again.😄

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

    Amazing tutorial thanks

  • @this.channel
    @this.channel 6 років тому +1

    I feel this series would be perfect, if the final video featured workarounds for IE and Safari flex bugs.

    • @KevinPowell
      @KevinPowell  6 років тому

      While I know IE has issues, curious which Safari bugs you're referring to.

    • @this.channel
      @this.channel 6 років тому

      @@KevinPowell Sorry, I just realised most of them are fixed, I guess. Here is a good source of flexbugs for IE and Safari, of which most (or even all) are fixed for Safari: github.com/philipwalton/flexbugs

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

    I’m using visual studio and I can’t see the modifications until I go to Google to check my index, what are you using to code and watch instantly the modifications???

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

    great tutorial!!

  • @calvinkwok7158
    @calvinkwok7158 7 років тому

    Looks cool, i never used it before, wanna try it...

    • @KevinPowell
      @KevinPowell  7 років тому

      Flexbox is amazing. It can be a bit overwhelming at first because there are a lot of properties, but just how easy it is to have a parent div with three child divs inside... give the parent a display: flex; and you have columns... and you don't need clears! Amazing.

  • @LearnEnglishByCartoon
    @LearnEnglishByCartoon 6 років тому

    Thanks for your videos.

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

    Thanks

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

    Hello,how can you split the editor like this, I am new to vs code but its seems way more easier to just have the css right below the html and the browser to the right.
    Please advise,thanks!

  • @malihaabbasi.9789
    @malihaabbasi.9789 3 роки тому +2

    Why make a whole different file for CSS when you have the style tag?

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

      Making a different CSS file is most flexible in case there are more than one page on a website because with an external style sheet, you can change the look of an entire website by changing just one file. You don't have to manually change each style tag in each HTML file.

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

    thanks!

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

    Dude, thank you for having a tiny intro

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

    00:38 | Flexbox Subjects

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

    We can make a fully responsive website, WITHOUT using Media Queries?

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

    ur legend

  • @cesarlara3974
    @cesarlara3974 7 років тому

    So I know HTML and CSS and floats so would you recommend getting into flex box so I can avoid using floats and clears in the future?

    • @KevinPowell
      @KevinPowell  7 років тому

      I would! It is a bit more complicated, but it is more intuitive as well in my opinion, and gives you a lot more control. Floats are clears aren't going to be relevant for much longer, except for a few minor things (not so much layout stuff anyway).

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

    How many CSS properties only affect 1 level of nesting?

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

    Thank YOu

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

    I want to have one div being the main content on the left - another two small div at the right - then about three more s div at the bottom. Tried with flexbox but wasnt bale to get this. Obviously each div box will have different size but can't seem to get the about layout

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

    How can you make a complex flexbox layout please? Would appreciate if you make a video for this please

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

    It's a lot to take in at once. I'm at my second viewing right now and know I'll need three or four before I go to the next. There's my truth.

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

      No harm in that at all! Go over it, practice and play with it, revisit it and keep learning!

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

    You're awesome

  • @yil.summer
    @yil.summer 4 роки тому

    I like this tutorial. I found it funny that Kevin's voice changes when we go to the tutorial part, is he using two different microphones?

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

      Summer Liu lmfao

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

      Probably in a different room/studio. His voice echoes up and increases the volume

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

    Sorry, really confused about the container thing nothing is working i dont think it applies to what im doing? Would really like some feedback and help

  • @АлександрБагмутов
    @АлександрБагмутов 6 років тому

    Are you intentionally keeping color scheme in explanation and faceCam consistent? :)

    • @KevinPowell
      @KevinPowell  6 років тому

      Hahaha, that's hilarious. I wish I could say that I had, lol.

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

    Hello Kevin, thanks from your best instruction and teaching, if possible please rename teach video by number suffixes. Regards

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

      I didn't number these ones because they sort of stand on their own as well, while I made them in a specific order, I'm not sure the order is super important... well except the 3rd one I guess?

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

    Hello, I can't access your given flexbox playground link , kindly update the link.

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

      Oh no, that sucks that it's down 😕
      The second one is still working though

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

    I know this is a STUPID question, but where do I find/get Flexbox??

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

    Great

  • @bloc-notes6751
    @bloc-notes6751 5 років тому

    Thank !

  • @rupeshogale4384
    @rupeshogale4384 7 років тому

    Amezing bro really I got what I want
    I am from India

    • @KevinPowell
      @KevinPowell  7 років тому

      Awesome, glad to hear that :D

  • @cesarlara3974
    @cesarlara3974 7 років тому

    What is the difference between flex box and CSS grid? Or which one is better?

    • @KevinPowell
      @KevinPowell  7 років тому +1

      Flexbox has been around longer and has better browser support. You could build a layout with it today unless you need IE9 support. The Grid is VERY new, and while all the big browsers support it, it's only the newest versions that do, so support isn't as great yet.
      Flexbox is 1-dimensional, meaning that it can create either a row or a column. The grid is 2-dimensional. We can create rows and columns at the same time. It also allows us to make rows and columns, and then place content where we need to on the grid. With flexbox, you're creating either a row or column, and then fill it up with the divs you need.

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

    Thank You!!! :)

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

    always reminds me of the closing tag for fragment in react

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

    always found it funny how `flex-direction: row` looks like columns and `flex-direction: columns` looks like rows

  • @ivanc8494
    @ivanc8494 7 років тому

    Greaaaaat !!!

  • @cesarlara3974
    @cesarlara3974 7 років тому

    How do you start a portfolio for beginners? Like where do you start?

    • @KevinPowell
      @KevinPowell  7 років тому

      Start with something simple! Find some layouts on line, or sketch something out, and see if you can put it together! I do have a few series on building pages from scratch that might help as well.

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

    Amazing tutorial but I still don't get the align content part

  • @johnconnor9787
    @johnconnor9787 6 років тому

    are flex-flow and flex direction the same?

    • @KevinPowell
      @KevinPowell  6 років тому +1

      flex-flow is a shorthand property, lets you define the flex-direction and flex-wrap at the same time, like 'flex-flow: row wrap'

    • @johnconnor9787
      @johnconnor9787 6 років тому

      Thank you a lot

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

    i wish i learned flexbox sooner

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

    Some grid CSS is new to me.. : autoflow/minmax