Useful & Responsive Layouts, no Media Queries required

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • Conquering responsive layouts: courses.kevinpowell.co/conque...
    Here’s 5 quick responsive layouts that you can use, without any media queries!
    There’s nothing wrong with media queries, and we still need them sometimes, but these can be really handy in the right situation!
    🔗 Links
    ✅ Netflix scroller: • Can I create Netflix’s...
    ✅ Every Layout: every-layout.dev/
    ✅ Conquering Responsive Layouts: courses.kevinpowell.co/conque...
    ⌚ Timestamps
    00:00 - Introduction
    00:13 - The Cluster
    01:10 - Nothing wrong with media queries
    01:47 - Auto-grid
    03:00 - Flexible grid
    03:33 - Reel
    05:41 - Do you struggle with responsive layouts?
    06:12 - Main with sidebar
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my RUclips channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

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

  • @mda4S
    @mda4S Год назад +54

    My english is not good but I benefit from your channel a lot

  • @KingTMK
    @KingTMK Год назад +105

    I usually don't comment, but I just wanted to say that this is such a great and eye-opening video when it comes to tackling very common problems with responsiveness. I appreciate it tons, so thanks for this!

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

      Thanks so much! I appreciate that you took the time 😊

  • @CyberspaceCitadel
    @CyberspaceCitadel 18 часов назад

    that's why i call you big brother of css, i love and inspire your work and creative code writing

  • @vitfirringur
    @vitfirringur Год назад +15

    I stumble into some of your shorts and while I've been doing frontend dev for years, and feel like I can solve most CSS problems or implement most layouts, watching your videos is a humbling experience. I might as well not know CSS. Thanks a lot for the great content.

  • @seanszarkowicz2910
    @seanszarkowicz2910 Год назад +15

    These types of videos are amazing - great job. Love the detailed explanations with the possible pitfalls and solutions to those pitfalls !! Keep up the great work

  • @obsessedprogrammer700
    @obsessedprogrammer700 Год назад +3

    I recently worked on a large project and I happened to blend most of these layout tools together(also media queries), and the result was astonishing. Thanks, Kevin!

  • @mrez5651
    @mrez5651 Год назад +6

    I have been a member for a month now and your videos helped me solve problems that i have been strugling with, for that i thank you
    You are a great mentor, always on the point!💯

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

    Another big shoutout for Every Layout. I *constantly* go back to that to try and get my developers to learn to love the cascade.

  • @blackpurple9163
    @blackpurple9163 Год назад +2

    Never thought of making those flex-wrap divs for tags/navs like that, this is actually what I wanted to figure out, thanks a lot

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

    I took Kevin’s course and it was great. It gave me a structured overview of responsive design. Can’t recommend it enough ❤

  • @MrKOHKyPEHT
    @MrKOHKyPEHT Год назад +1

    It is really cool that in such short video all most common cases considered. Extremely helpful and useful. Thanks

  • @cscs6587
    @cscs6587 Год назад +2

    This repeat(auto-fit, minmax(min(200px, 100%), 1fr) is life changing. I was facing this problem in my current project and you helped me fix it. THANK YOU SIR

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

    The last part with the side bar was exactly what what I've been struggling with for the last couple of days and now I've found the solution. Thank you Kevin.

  • @VasilyPavlik
    @VasilyPavlik Год назад +1

    After EVERY your video I have irresistible desire to rewrite at least a quarter of my current project. And a half of previous ones.

  • @ichiroutakashima4503
    @ichiroutakashima4503 Год назад +3

    This video is genius. I really love it. I can't wait to refactor my codes with this. Love the touch ups.

  • @composernotes
    @composernotes Год назад +8

    Thanks Kevin, this is such a clear summary of the best of flex and grid, I will be showing this to my web class next week!

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

      Awesome, glad you enjoyed it enough to share with your class! Hope they enjoy it too 😊

  • @angshumanburagohain1151
    @angshumanburagohain1151 9 месяцев назад +3

    Kevin doesn't disappoint when it comes to HTML & CSS. He teaches exactly what we need. I have learned a lot watching his videos and I am still learning and implementing it in real time projects. Thank you Kevin for making these videos it's really really helpful 🙏

  • @body220
    @body220 Месяц назад

    bro this guy is having tutorials for everything, thank you!

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

    Thank you so much for all you shared so far and for the free course as well. Really appreciate it!

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

    Fascinating video on youTube I have barely seen, and this video is the one. Your every css lessons made me think regarding css even in my busy schedules. Thank you to bring this kind of things to us.

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

    Awesome, Kevin! thanks. Coincidentally i was just thinking about implementing one of these layouts, so perfect timing as well!

  • @henrythomas7112
    @henrythomas7112 3 месяца назад

    Thank you so much for this video. Super helpful and well-presented. Your time and effort is most appreciated!

  • @iservisat
    @iservisat 4 месяца назад

    I can't thank you enough for all the content, tips etc you share. Keep it going master!!!

  • @appdevinsights30
    @appdevinsights30 Год назад +1

    I learned a lot with just 11 minutes. Excellent CSS knowledge. Thank you so much.

  • @alwaysgratefulmixail7569
    @alwaysgratefulmixail7569 Год назад +1

    Layouts have been a battle for me so thank you for this great video 😊

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

    I'm speechless, I just can not imagine CSS without your videos, thank you so much for such a great videos!!!!!!!!!!

  • @rajkiranchaudhary8769
    @rajkiranchaudhary8769 Год назад +1

    I often get issue when using flex-wrap. This video really helped me.. amazing as usual

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

    One of your best videos ever, great work!

  • @Edu-Coimbra
    @Edu-Coimbra Год назад

    Thank you so much for all your tutorials! A big hug from Brazil =)

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

    Your channel is a gem 🙌🏻thank you

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

    Really great tips!
    Didnt know about some of them techniques, thanks for the video!

  • @alialtwill6551
    @alialtwill6551 Год назад +2

    Thank you, thank you for the great video. I really appreciate the effort you put in Videos.

  • @Kozi03
    @Kozi03 6 месяцев назад

    Where have you been all my life. Thank you!

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

    this is one of the most awesome thing i ever can learn, thank you for sharing 💯

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

    Wow, I love it and saves so much time on creating media queries. Also, I like the new format Kevin. i.e. rather than type in every command, you just jump forward. Much better.
    George

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

    Superb as always🔥

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

    Not fancy, but useful! Thank you, Kevin! Be healthy and successful!

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

    great video. Thank you for the useful examples.

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

    I just wanna say, you and your contents are amazing!

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

    I’m finishing up a React course right now and as soon as I’m done, I’m diving into CSS Demystified. Can’t freaking wait.

  • @outpost31737
    @outpost31737 Год назад +1

    Thanks Kevin! Every day's a school day :)

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

    Great demonstration!! Keep going....

  • @user-km9vl9ck9u
    @user-km9vl9ck9u Год назад

    great stuff Kevin, thank you!

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

    Great video, thanks!

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

    Ahhhhhhhhh, I love this guy, like I love this guy...that flex grow trick was just what i needed😂

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

    Amazing work Kevin 😃 This is like a cheatsheet for me

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

    This is super useful, thanks!

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

    The content is 🔥🔥
    Thank you 🌹

  • @Atractiondj
    @Atractiondj 4 месяца назад

    Last layout trick with the sidebar very must have for me, I eliminated 2 media queries and 50 strokes of code

  • @ldburn
    @ldburn Год назад +2

    I was pondering tables the other day and thought I'd come and have a gander here, you should definitely do a responsive table video. They can be a pain but there are times where tables are needed for information and the CSS behind them would be pretty interesting.

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

      It's in the works :D

    • @ldburn
      @ldburn Год назад +1

      @@KevinPowell wicked 🙂 I do enjoy your videos, firmly believe there is always something new to learn or improve on and you always have something different to show 🙃

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

    This is gold, and only takes 11 minutes, omg.

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

    Kevin I love you )). Thanks bro for all staff

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

    You sir, have this really nailed down 🤩

  • @caiomarcellusmartinezcabra3061

    The flexbox hackery is just brilliant!

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

    Thank you Kevin

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

    Really nice!

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

    The min hack on auto grid is awesome. I usually use media queries there and have a different template columns for smaller devices but now I can just write less code. 😁

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

    One of a few best teachers ever!

  • @user-jx9iw7uz1u
    @user-jx9iw7uz1u 5 месяцев назад

    your video is goldddd

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

    Simple and useful video

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

    I really enjoy watching your video i have learned a lot
    Now i'm challenging myself to download all your Videos you ever created to my phone and keep it for learning purpose and in case i may have a student in the future your videos will really help a lot.
    Ones I make all the downloads I will create a short video and tag u

  • @minhrdi
    @minhrdi Месяц назад

    I'm having to maintain codes in which the previous dev used margin: -x to arrange things... I told my teammate that's not how CSS works and you should just go take up Kevin's course... Thank you!

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

    Awesome !!!!! 🚀🚀🙌

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

    Great video sir ...

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

    For the sidebar I use min and max width with a width of 100% to get the same effect without the need to treat them differently.

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

    I could never get the scroll snap stuff right! Thanks for the super simple example

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

    Thanks a lot! master

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

    Hey Kevin, I love your videos and this one is super useful for what I'm doing at work right now. May I suggest reducing the size of your talking head bubble? It often blocks the content.

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

    I Love the 5:15... Was Amazing...

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

    Good lord...This dude is CSS Master!

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

    Is there a way to force flexbox to evenly distribute (by number) the child elements across rows? For example, if I have 8 elements and they can all fit in one row, display them as such. But if I reduce the width such that a second row is created, I'll end up with two rows of four instead of one row of seven followed by a row of one. Setting the grow value only seems to work across elements in the same row, not across all child elements in the flexbox.

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

    Thanks, Kevin for another great video!
    Question in regard to the reel demo.
    What if each horizontally scrolled section do not share the same height?
    One section has a lot of content causing the other sections to be comparatively empty.
    Thanks again for your good work.

  • @8koi245
    @8koi245 Год назад

    hahaha the last one was pretty interesting to solidify flex topics that aren't that used ~

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

    the last example was cool

  • @nomadshiba
    @nomadshiba Год назад +2

    i have also been using: minmax(min(100%, 25rem), 1fr), a lot but i recently switched to just using minmax(0, 25rem), i mean its not the same but does the job, and a lot more clean

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

      i mean if you are listing items it wont work but it works while doing layout

  • @ammarniz
    @ammarniz 26 дней назад

    You are an amazing 💗

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

    Great!.... Dare I say it? AWESOME :)

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

    Flex is really simple, but it will usefull when build a simple design or for quick positioning block. Then, grid is a bit hard to deal with it at first, but it really more usefull to build a spesific or complex design.

  • @seanszarkowicz2910
    @seanszarkowicz2910 Год назад +1

    Thanks!

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

    literally what im working on right now

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

    your the chad sir kevin

  • @michaellonsdale1248
    @michaellonsdale1248 5 месяцев назад

    Thanks Kevin

  • @ArtyomStouch
    @ArtyomStouch 4 месяца назад

    Вітання панові Кевіну з України, Ваші відео допомогають мені та полегшують навчання.
    Greetings to Mr. Kevin from Ukraine, your videos help me and make my studies easier.

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

    Thank you...

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

    hi. Kudos!. In the main-sidebar example, can you explain why the sidebar got so squashed up by the main in flex mode? I was expecting them to shrink at the same rate since there shrink is both 1 and their size is auto. Why is the side bar width so shrunk to min-content?

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

    You my friend, are a magician!😂😂😂

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

    useful content

  • @user-bh7kz9il7v
    @user-bh7kz9il7v 2 месяца назад

    cool video)

  • @BGdev305
    @BGdev305 5 месяцев назад

    I'm confused, wouldn't using VW or REM instead of px for the widths be a better solution?

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

    By the way it would be interesting to see how you would tackle accessibility options with modern website css.

  • @fabianjochenkanzler
    @fabianjochenkanzler Год назад +1

    it’s so cool to look at one of your videos realizing that i know everything you are explaining. i came up with the same solutions during coding, had the same hacks. that’s really uplifting. maybe i’m better skilled and have greater knowledge and understanding than i thought. thank you for that.
    and thank you for that video, putting that all in one place.

  • @Krishnasaini
    @Krishnasaini Год назад +2

    How do you know CSS so well? What path did you follow ? Or it comes with experience?

    • @phucnguyen0110
      @phucnguyen0110 Год назад +2

      Most are from experience, I am sure that Kevin has been doing web dev since the 90s

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

      Yeah, been mucking around with websites since the late 90s, and been teaching it over a decade. Experience goes a long way, and teaching it helps get into it deeper

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

    Wow, i want to print that video and hang it on my office wall!

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

      Thanks so much, glad you enjoyed it!

  • @Pesthuf
    @Pesthuf Год назад +1

    I wish grid would make it easier to define that you want columns counts of certain sizes only - like only allowing snapping between 8, 4, 2 and 1 while disallowing 5,6 and 7.
    This comes up often when trying to align logos and you don't want, say, 6+2 items, but only 8 or 4+4 or 2+2+2+2...
    So far, I've not found any solution other than media queries (and container queries in the future).

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

      That would be pretty cool of we could do that!

  • @intsfanatic
    @intsfanatic Год назад +1

    Wow, didn´t even know flex-grow can have a value of bigger than 1.

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

    Hi Kevin, thx for this Tutorial. I have a Question: How I can solve this with multiple Rows ? (I need a static Count of Columns but flexible Rows in a scroll Container). On Desktop it works but on mobile the Columns gives right a large Offscreen Space... :( many Thx)

  • @pablofigueroa9455
    @pablofigueroa9455 2 месяца назад

    Genial..!!!

  • @leodragonheart754
    @leodragonheart754 5 месяцев назад

    I have a question, is there a standard on how to set text sizes? Right now I am looking at each section at each breakpoint and use media queries to adjust the text sizes but there has to be a better non time consuming way of doing it

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

    Nice

  • @achyutkayastha4248
    @achyutkayastha4248 11 месяцев назад

    using media query on the last one is less confusing than using flex basis?