Flexbox design patterns you can use in your projects

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

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

  • @ihavevoicesinmyhead9729
    @ihavevoicesinmyhead9729 3 года назад +479

    First name to search for when you need anything related to CSS.

  • @rektosaurus6552
    @rektosaurus6552 2 года назад +20

    im at the very beginning of my webdev journey and i gotta say your content and what you provide for us is priceless, I cant count the number of times I was struggling for hours then i come back to your videos and i find the solution , thank you so much !

  • @akshaymondal1372
    @akshaymondal1372 2 года назад

    Before diving into web development I went through lots of articles in quora , most of the articles were related to css and all of them said that css is just bullshit , not possible for everyone to cope up with it . It created too much hype in our community that it actually crated fear in out hearts .
    But I didn't have any option, so I started with html css .
    And then I came across the great kevin powell. You don't know how much you have contributed in my life.

  • @sirharis7462
    @sirharis7462 3 года назад +49

    I’ve been winging it with flex for a while and spending countless hours debugging and guessing to make things work with flex but after this overview on the basics, I have a better understanding of flex and how to approach the styling. Nice video, great breakdown.

  • @DannyLevan1
    @DannyLevan1 3 года назад +21

    Just wanna say I really like your videos. I've worked in web for close to 10 years and have never properly learned CSS and your videos are just so well made and easy to understand.

  • @GGdevelopment
    @GGdevelopment 3 года назад +130

    I still don't understand how you have less then 200K subs... You deserve more!

    • @emkisn
      @emkisn 3 года назад +4

      YESSS, i think the same. This channel is so rich in content

    • @jradplowman
      @jradplowman 3 года назад +1

      Dido...

    • @samueljun
      @samueljun 3 года назад +2

      done.

    • @layeekromah4799
      @layeekromah4799 3 года назад +2

      I think it's because most people overlook the role of CSS until they really need it.

    • @Kevinproducciones2
      @Kevinproducciones2 3 года назад

      Now he has 267.000 in less than 4 months

  • @etch_kay
    @etch_kay 3 года назад +2

    Thanks a ton, lol I was taking ss from your video just to keep a cheat sheet and you offered it, you're probably the best teacher on RUclips... thanks a ton

  • @firedforfighting
    @firedforfighting 3 года назад +2

    The CSS God....I spent hours yesterday trying to wrap my head around something like gridish...I sort of gave up but I was so close!!!...You really make CSS cool these vids are a lifesaver

  • @JustPlaytheTrack
    @JustPlaytheTrack 3 года назад +45

    It never fails. I come to one of these videos for a specific technique, and end up deleting my entire style sheet.

  • @xphstos_
    @xphstos_ 3 года назад

    I don't know what it is but you're in my head!!!
    I was exploring some ways to reduce my media queries while I was working on a project I used this gridi-sh example.
    But Kevin, when I say you're in my head I mean it!
    This keeps happening for months now!
    I find something new and then BOOM here's a new video with you playing with the same stuff!

  • @bryanperez3668
    @bryanperez3668 Год назад

    Great! The content sidebar section is exactly what i need, in my job they are using float and width instead of flex-basis so that a field is more large than the next one. Thanks for that

  • @daveskye
    @daveskye 3 года назад +14

    For spacing margin works well and then you don't have browser compatibility problems.
    .parent { margin: -1rem}
    .child {margin: 1rem;}
    By adding a negative margin to the parent then you don't lose the width. This method works well when using flex wrap.

  • @felixjimenezgonzalez9292
    @felixjimenezgonzalez9292 2 года назад

    First of all, great video! Everytime I need to refresh flexbox you're the first person I come to!

  • @devsoldier4345
    @devsoldier4345 3 года назад +1

    I love your videos. Everytime I get stuck on something and I search youtube it's always one of your videos that get me back on track.

  • @musabas5341
    @musabas5341 3 года назад +5

    I don’t really understand those dislikes. They might have clicked by mistake. Thank you so much Kevin. Another great video. 👍

  • @sscip88
    @sscip88 3 года назад +2

    Found this guy TODAY!!!! ONLY TODAY!!! THANK YOU Kevin!

  • @carstenberggreen7509
    @carstenberggreen7509 Год назад +5

    As always, totally easy explanations and very visually! Keep it up Kevin!

  • @AnthonyDev
    @AnthonyDev 3 года назад

    Now, always I have any doubt about css I come to this channel, since I watched the king of css battle video this is my favorite css channel. I'm improving my flexbox skills. :)

  • @ayushbali
    @ayushbali 2 года назад

    Kevin you're awesome, I used to fear CSS and everytime I tried making layouts I used to quit out of frustration, these videos of yours are great and I'm starting to understand things now. Thankyou!!

  • @jessiz-
    @jessiz- 2 года назад +3

    Super helpful - I love the way you teach and go through these concepts. It makes thinking about flexbox so much simpler. grid-ish seems really useful. Thanks Kevin!

  • @sumkitteh
    @sumkitteh Год назад

    This is great, thank-you so much! I was actually in the process of going through a number of your (older?) videos seeking to extract precisely this information - I had very recently started using the flex-box patter you named "grid-ish" after seeing your description of it regarding the use of flexbox - there was no 'grid-ish' name, in that video, but from my experimentnig with it I recognized the patterns from the video icon image on this one, and this one answers a number of the guestions I had about how to constrain the flex box (e.g. column width's etc- so - thanks again - I am really enjoying your videos

  •  3 года назад +6

    Little details like that ch unit totally have my mind blown :-O

  • @abbassher201
    @abbassher201 3 года назад +11

    Its feel amazing everytime seeing your's video notification on youtube . Thanks alott Sir

  • @parthparmar9798
    @parthparmar9798 2 года назад

    every time i get to your video i learns atleast one awesome trick to make my projects more effective.
    so thanks for that.

  • @waleedsharif618
    @waleedsharif618 3 года назад +1

    Now you seems to be my way to go if i need to check some css tricks, i hope you keep making these videos

  • @sheldonfourie5959
    @sheldonfourie5959 3 года назад +3

    It's thanks to this guy I did my first free Lance job and then landed a good job

  • @seeithappen1
    @seeithappen1 Год назад

    Thanks for showing this. Yes I agree that Flex is really amazing and personally I prefer it above css grid what is actually overkill.

    • @KevinPowell
      @KevinPowell  Год назад

      I actually use grid way more often 😂
      But flex is still great at what it does!

  • @dannyr2976
    @dannyr2976 3 года назад

    I'm new to the channel but learned so much about the awesome power of Flexbox! Thank you so much for sharing!

  • @Elliot7676
    @Elliot7676 3 года назад

    You're the real genius of css

  • @frankiejrey
    @frankiejrey 3 года назад

    I use Grid to create layouts and flex when I want anything inline. Great tutorial.

  • @edilebert
    @edilebert 3 года назад +3

    You are the nicest RUclipsr I've ever seen Mr. Powell! I love watching your content! So wholesome

  • @rezarahman1782
    @rezarahman1782 3 года назад

    It's really cool that how you manage to minimize the use of media query.Hat's off sir!😍

  • @muhammadzaakirmungrue3146
    @muhammadzaakirmungrue3146 2 года назад

    I have watched many I think your the best CSS teacher on RUclips. Thanks , things get messy when I have a with a few icons and tags and I need to add a dropdown with a title in that and centre it.

  • @capogocrazy6125
    @capogocrazy6125 3 года назад

    this guy is literally a life saver.

  • @alexweb9974
    @alexweb9974 3 года назад +4

    Great work Kevin. Very well put together, straight to the point video. I also took you responsive design course which was great. Thanks for sharing your knowledge!

  • @JimKernix
    @JimKernix 3 года назад +4

    Great video - love these settings. BTW, I took your free 21-day responsive layout course this Summer, and now building a responsive site is a piece of cake. I just got my site up and I need to fix some designs that I don't like but it looks good on a smartphone. I started out though NOT building via responsive first - that was a mistake. I ended up building my last 2 pages responsive first and it was easy - now I have to go back and clean up the mess I made from building desktop first...

  • @hyfydistro
    @hyfydistro 3 года назад

    Flexbox has "gap" property now?!! 😍 Thank you!! I always find something new in your videos!

  • @judericketts2494
    @judericketts2494 3 года назад

    Brilliant, thank you Kevin. I'm just starting my journey on flexbox.

  • @jasongoossens
    @jasongoossens 3 года назад +1

    A little VS Code trick to duplicate lines: Alt+shift+arrow up or down. If you select multiple lines, you can also duplicate them like this.

    • @KevinPowell
      @KevinPowell  3 года назад

      Yeah, that's a great one. I've set up a macro on my keyboard to do it because I'm lazy, lol.

  • @lawrencepsteele
    @lawrencepsteele 3 года назад +2

    Perfect timing, I'm currently working on a project where I might be able to use the content-sidebar idea to streamline my classes a touch.

  • @deadaccount6327
    @deadaccount6327 3 года назад

    i've never heard of the ch unit before thats reallly helpful

  • @michalroesler
    @michalroesler Год назад

    And an enormous thank you 4 teaching me modern CSS.

  • @dregavero
    @dregavero 3 года назад +6

    Kevin you are a amazing! 👏 thank you for explaining these css scenarios in easy to understand manners, it really helps a lot , because responsive design is such a vital part of web dev, but also such a hard one, especially for newer developers⭐

  • @juanvia8394
    @juanvia8394 2 года назад

    Flexbox design patterns I surely will use in my projects. Thank you for that.

  • @worldclasscode1847
    @worldclasscode1847 2 года назад

    Nice vid! I love Flexbox. It's so useful. I use it on each and every web page, multiple times.

  • @PremiumTechReviews
    @PremiumTechReviews Год назад

    Outstanding teacher and seems to be a very nice guy in the real life. Thank you Kevin, for all the great things you do!

  • @mohan9285
    @mohan9285 3 года назад +2

    It was a brushing up video for me on Flexbox properties, Thank you Kevin :)
    I love to see more videos on CSS Animations...

  • @iamjustine1
    @iamjustine1 2 года назад

    Really the CSS king!! Thanks for the knowledge!

  • @wolfenrico
    @wolfenrico 3 года назад +1

    This is real magic! Thank you so much. Have a wonderful new year 2021!

  • @nikhiltyagi6619
    @nikhiltyagi6619 3 года назад +1

    One of the best videos that you have made. Thank you so much man! You rock!

  • @omniosi
    @omniosi 3 года назад

    Best explanation i've seen so far. It also makes me feel better that he types about as a bad as I do. ;)

  • @louisgamor
    @louisgamor 3 года назад +3

    What will I do without your tutorials? !!😩😍

  • @rachanaa6745
    @rachanaa6745 3 года назад

    most amazing video in recent times which I have watched to learn Flexbox.... thanks so much Sir... All The best !

  • @shahbokhari
    @shahbokhari 3 года назад

    Always learn something new from Kevin's HTML, CSS & JS videos. He's a PRO and a Hero. We are all getting old!

  • @Ayomikun
    @Ayomikun 3 года назад +36

    Safari really starting to feel like the new IE for me 😤

  • @logiconabstractions6596
    @logiconabstractions6596 Год назад

    For the 1st layout, minor quibble:
    flex-basis: 1fr;
    would work just as fine, but I find it a bit more precise. E.g. 100% somewhat makes me think "100% of... parent? they can't all do that". While 1fr makes ti clear it's 1 fraction of the available space for each.

  • @tthompson9509
    @tthompson9509 3 года назад

    I feel smarter every time I watch your videos

  • @josepotgieter8275
    @josepotgieter8275 3 года назад

    Exactly what I needed for my current project. Thanks

  • @wetsand7379
    @wetsand7379 3 года назад

    I'm addicted to learning CSS because of you!

  • @dindoleonard
    @dindoleonard 3 года назад

    wow you really are king of CSS

  • @wlancer8826
    @wlancer8826 3 года назад

    Watching your videos for two hours straight! Having me question myself for studying HTML and css for two years and what!??

  • @hassanjaved1147
    @hassanjaved1147 2 года назад

    Amazing stuff. I have been looking for this precious info for almost a month. You saved our back :) Thank You.

  • @danialranjbar9805
    @danialranjbar9805 2 года назад

    I wished u could make a video with the title, CSS GRID LAYOUT DESIGN PATTERNS cause this video of yours was awesome

  • @maxxernB
    @maxxernB 2 года назад

    thanks for the help, you make web-design learning much easier for me

  • @silverhakusho
    @silverhakusho Год назад

    Thank you for your videos. They've been an invaluable resource in my web development learning journey

  • @sammiller9855
    @sammiller9855 2 года назад

    Alternatives to using gap, for example, for a three-column base layout. Replace the placeholder "gutter" with the actual value (e.g., 1rem):
    parent {
    display: flex;
    }
    .children {
    flex: 1 1 0%;
    }
    .parent > *:not(:first-child) {
    margin-left: gutter; }
    or,
    parent {
    display: flex;
    justify-content: space-between;
    }
    .children {
    width: calc(100% / 3 - gutter / 2);
    }

  • @wollexq5893
    @wollexq5893 3 года назад

    What was new for me: gap property. What did you explain to me a little better instead of reading it myself ? the shorthand flex property. Take the sbuscription, sir.

  • @avimehenwal
    @avimehenwal 3 года назад

    You are awesome :) Quality over Quantity my man, you are doing way better than other youtubers XD I am a fan

  • @donghyuk80
    @donghyuk80 3 года назад

    Thank you for brief explanation!

  • @insomniomicron3297
    @insomniomicron3297 2 года назад

    Amazing stuff Kevin! Thanks for this!

  • @grizzlythresher7140
    @grizzlythresher7140 2 года назад

    I really wish I knew about this channel when this video came out.
    I am now a firm believer in the Church of Flex, but it has taken me a while to figure out what the hell I was doing. This video would have been So helpful to me then, and still has some really useful info.

  • @sirjohn2924
    @sirjohn2924 3 года назад

    This is what i wait for :) probably last year of the video and it makes me happy. Thanks Kevin. We hope that 2021 will be great for everyone. Kevin also I want to see more updated video about old topic with new trend like css position on cutting edge effect etc.

  • @brooksgunn5235
    @brooksgunn5235 3 года назад

    Thank you, the first part helped me on a project. CSS Flexbox is harder to work with than grid, but I want to know it nonetheless.

  • @tulsiraj1998
    @tulsiraj1998 3 года назад

    Awesome thanks Kevin for video on flexbox.

  • @somepersonalconsiderations
    @somepersonalconsiderations 3 года назад

    Absolutely on the edge, creative us of code for Flexbox, very interesting solutions and I hope Safari 15 will support gap too

  • @ayitinya
    @ayitinya 3 года назад

    These guys are making me the web dev I want to be

  • @tyronefrielinghaus3467
    @tyronefrielinghaus3467 2 года назад +1

    Hi Kevin...thanks for a super tutorial. Very clear. Also you've got a good voice for it too. Good pacing and step by step..... Oh and thanks for the pdf too...helps after watching to reinforce 👍
    Best wishes
    Tyrone.

  • @gunjanrajtiwari1435
    @gunjanrajtiwari1435 2 года назад

    The Gridish one is awesome. 😍

  • @somnvm37
    @somnvm37 3 года назад

    • If you put your left hand on the keyboard in the position of "k j l ; ", than you can use j to get 10 seconds back, k to pause, and l to get 10 seconds forward. In addition you can use m ro mute the video.
    • You can use Ctrl+L to type a new search query.
    • (Only for chrome)You can also write "youtube.com" to the searchbar, and then press tab, and you will use youtube search withoug opening youtube first.
    • Use Shift+Delete to delete the entire row of text, usefull for the css.
    • Use Alt+7 (7 on the numpad) to make the "•" sign (carefull in the browser, might open a new tab).
    • You can also type "donwnload firefox for developers", download it, use the duck duck go search engine, then delete google chrome. Now no one knows what are you doing all the time.

  • @filipthedev4159
    @filipthedev4159 3 года назад

    I'm doing a free project where they have every information you need mixed together and give a path to becoming full stack developer. Yesterday I finished flexbox and now everything goes easier on my webpages.

  • @banderamusicaltv
    @banderamusicaltv 2 года назад

    Thanks Kevin , You really helped me out today

  • @mingde893
    @mingde893 3 года назад

    Take my sub, you really deserve it. thanks alot mate. Hope that your channel blows up

  • @digitalminister5687
    @digitalminister5687 3 года назад

    I like, that you try to improve the video quality an it is totally visible and thank you for that! The only thing is, I would like to see your face instead of side profile, that way you would give us more of the feeling of personal conversation.

    • @KevinPowell
      @KevinPowell  3 года назад +1

      Working on a new set up now, should be up sometime in early February

  • @somnvm37
    @somnvm37 3 года назад

    The gridish was great. Always wanted tgat.

  • @AWM_2023
    @AWM_2023 3 года назад +1

    December 30th and you’re keeping the beat. Thanks for the great videos. And happy new year!

    • @KevinPowell
      @KevinPowell  3 года назад +1

      Happy new year to you as well!

  • @ramyokasha3092
    @ramyokasha3092 3 года назад

    thank you for all your tips and tutorials , you are a living treasure bro

  • @kennethgan1333
    @kennethgan1333 3 года назад

    all hail to the Css King!Such a life saver!

  • @jeffborges101
    @jeffborges101 3 года назад +1

    Awesome stuff Kevin! Thank you very much. I am back on dev again after some days in pause mode .
    I will get back to your classes on CSS demystified tomorrow morning !
    Happy new year to you and family !

  • @LeeroyGgJenkins
    @LeeroyGgJenkins 3 года назад

    That Lorem50 trick is amazing

    • @carlosbertomeumarin8944
      @carlosbertomeumarin8944 3 года назад

      How is he doing that? With an extension? You know the name?

    • @LeeroyGgJenkins
      @LeeroyGgJenkins 3 года назад

      @@carlosbertomeumarin8944 you simply write lorem50 press tab and it adds 50 placeholder words. Works with any number after the lorem

  • @vincesantoschua3779
    @vincesantoschua3779 3 года назад

    My "Go To Guy" whenever I need something related to CSS!

  • @MrViciousway
    @MrViciousway 3 года назад

    Life saver 🙌🏼 helped a lot, seen you on web dev simplified css quiz episode 😁✌🏼 actually thought that was hilarious and very informational.

  • @haskomeyer4924
    @haskomeyer4924 3 года назад +11

    You could try applying display:hidden; on the glasses (not none so they stay in the flow of course). Unfortunately, it was not supported yet when I last tried.
    But they look good anyways.

  • @NSMetaLpig
    @NSMetaLpig 3 года назад

    The king of css

  • @orincywhytedesigns
    @orincywhytedesigns 3 года назад

    I can’t wait to support you further than watching your videos!! You are a great teacher can’t wait to join the Patreon!!

  • @thesirion
    @thesirion 3 года назад +7

    When you intend to teach some nice flexbox design patterns and end up making comic book pages

  • @lisandrofrancucci2205
    @lisandrofrancucci2205 3 года назад

    You are an absolute hero

  • @digigoliath
    @digigoliath 3 года назад +1

    Love this. Super Awesome!! TQVM!

  • @TheMetalMag
    @TheMetalMag 3 года назад

    Awesome , getting crazy with flex

  • @grzegorzt
    @grzegorzt 3 года назад +23

    Well, safari is like IE, but for a different system ;)

    • @BneiAnusim
      @BneiAnusim 3 года назад +2

      Safari is like IE? Eeeeh, NO. Safari is a browser that uses WebKit the engine used by Chrome originally. In fact, IE was SO BAD, that not only Microsoft got rid of it but created a new browser with a different name. 😉

    • @BATTIS94
      @BATTIS94 3 года назад +4

      ​@@BneiAnusim Microsoft learned their lesson with Edge, though. Now that they got rid of IE, Safari is the one that's always behind. So, yeah... Safari is like IE.

  • @alexax3888
    @alexax3888 7 месяцев назад

    I appreciate this demos, keep it up!