Flexbox Tutorial (CSS): Real Layout Examples
HTML-код
- Опубликовано: 16 окт 2024
- Join my premium 2024 bootcamp here learnwebcode.t...
Learn how to use Flexbox to create different layouts.
Looking for CSS Grid instead? I just posted a new video all about Grid: • CSS Grid Tutorial: Res...
Link to code used in this video: codepen.io/anon...
Link to more about browser support: caniuse.com/#fe...
Follow me for updates on new videos or projects:
Instagram: / javaschiff
Twitter: / learnwebcode
Facebook: / brad-schiff-1542576316...
Twitch: / learnwebcode
easily best flexbox tutorial on the web, keep it up!!
Thanks!
+LearnWebCode You literally saved my life + countless hours of time. God bless you!
couln't agree more with this, super easy to understand for someone like me who doesn't know how to code *applause*
I'm really speechless! you can't be more simple, direct and accurate to explain a topic more than this. you are a gifted teacher. Hats off!
One of the best code explaining video I have ever seen: Detailed, thorough, spontaneous, clear... Amazing!
Thanks!!
Don't you mean: One of the best code explaining videOOOOOOOOOOOOS. Detailed, thorough, spontaneous, clear, amaZIIIIIIIIIIIIIIING. Thank yOUUUUUUUUUUUUU.
?
@@svendbentjensen5512 no, i don't
22:45 it changed my life forever. "margin: auto" 😍
You should teach *everything* on RUclips. Concept, example and progress. How beautifully organized! Trust me, I've been searching for flexbox and grid tutorials (in 2020) and there's nothing even remotely close to the clarity of your video! I cannot like more! Subscribed!
till now i were in margin-left , margin-right , margin-bottom , margin-top but now i am in flex , auto , space-between , align-item , justify-content ... etc. thank you so much bro. plz guys give him five star !!
This was the most satisfied I have ever been after watching any tutorial on youtube.
But did you learn someTHIIIIIIIIIIIING?
This is a really great tutorial. Simple, clear, no mistakes or pauses or wasted time, well set up. All tutorial vids should be just like this. Thanks.
It's an actual steal that we are getting this much clarity for free. Super awesome.
Hands down this is the best RUclips tutorial to grasp the concepts of flexbox.
Thank you, i've been studying HTML and CSS and Flexboxes have been confusing me for the longest time and your video helped me clear things up. You're a life saver!
You changed my life in 28 minutes well worth the patience
3.5 years later and it still seems quite relevant. Great lesson indeed - thank you !
Honestly, the best tutorial on flexbox I've seen, so far. You have a talent for teaching. Thank you!!!
That centering text horizontally and vertically literally blew me up. Thanks a lot!
Me too.....
Honestly right! Blew my mind
I worked on a flex project for hours trying to figure out how to align material cards. This video saved me hours more. Thanks a great deal.
Currently attending a Web Dev Bootcamp. This vid explained a lot! You and Brad Traversy are awesome. Thank You.
Which Web Dev Bootcamp did you attend?
Learned to code cobol on IBM360 long before web browsers so I have seen and attended more than a few education/tutorials. Your presentation and explanations are clear, concise and relate to real world scenarios. Job Well done. Wish I had seen this LONG ago.... Anyone that gave a thumbs down or a negative comment..... no reason for that.
This has to be one of the single best flexbox videos I think I've seen. Great GREAT job!
This is the best video I have seen on Flexbox. Some of them are only explaining without any examples and others' screen size is too small. Can't read the code at all. Yours was perfect. Great combination of Explaining with Examples. Thank you.
Brilliant! You sir, are a fantastic teacher. I've been around for a long time, and in my opinion, you're the best I've ever experienced. This includes college instructors.
After obtaining my CSS certificate , I was told flexbox would make my css look better with less hassle, after watching this great video I am convenced learning to use flexbox is great, I appreciate this good lesson and i will continue to watch more...thanks
Great job, best youtube tutorial about Flexbox. 🔥
Watching this channel videos in 2021 ,I wish I could found this 2 years before. His way of teaching is so simplest and much clearly understandable for all members. I do not understand why this man has not yet received a million subscribers
this is the best tutorial video that i have watched in the whole of 2016!! Great explanation and humor too,...
10yrs later it still is 😢😢. Hopefully your still active to see my comment bringing you back here
I have been building websites for 27 years. Flexbox is the first css that really makes sense. Thank for your great tutorial. I can't wait to start rebuilding all of my websites using this code.
I'm just 7 minutes into this video and I'm already enjoying this.... I love the way you said "Hmm, I'm the the only child" ... So funny, let me continue the video
This is without doubt the best and easy to listen to tutorial I've seen so far..... Fast paced but not to fast, everything gets shown, basic insticts get reviewd... 100% best tutorial. keep it up!
0:32 display flex/flex 1
2:57 three column layout (order)
9:09 (margins flex basis)
15:52 mobile/responsiveness
18:08 multiple rows of items (flex wrap)
20:34 simple centering (margin auto)
23:09 columns and rows (flex within flex & flex directon)
Sir,i have completed my first code project by watching your javascript in half an hour tutorial.
now its flexboxxx time.....Thanks to u ...Love from Bangladesh Sir.
I cried a bit after "margin: auto;"
LOL
I know that feeling bro... years of life were wasted.
it s not only me then.
I cry every time I use it!
me too! bro....
No words, simply the best explanation ever listened to so far
Best flex-box video I’ve seen so far!! Love how structured it is! Thank you for sharing:)
There are a lot of flexbox videos out there; so thanks!!
ive watched at least 10 videos on flexbox and this one is by far the best.
Such a thorough and easily-understandable tutorial! Thank you!
Honestly after having watched for 3 days other tuts too this video is the most explanatory and well structured lecture
your explanation and every thing including voice quality is awesome
I'm taking a paid class in HTML and CSS and you just taught me more about flexbox in less than 30 min than they did in hours worth of classes. Thank you!
Best explanation yet on this topic
Most clear and creative tutorial on flexbox, and also felt your joy when you vertically center aligned the content..
OMG...SO extreeemely perfectly and easy explained. Thank you so much :)
From now on : FLOAT my ass :D
Our college taught us float that pained my ass in maintaining media query. As I learned flexbox it was like chocolates in hand. Now i use flexbox everywhere literally.
Every time you said, "What's the first thing that comes to mind when we face this scenario", it actually was the bad idea that you first mentioned which came to mind, that can be used for the scenario.
Your explanation is simply amazing!
i love you! Thanks, never using floats again :)
I watched/read many flexbox tutorials, but I really liked the way you teach. "Why we do all of these things", which is your method is really important. I hope you keep on teaching. Thanks a lot.
I can't believe I've waited this long to learn about flex box.
Maybe you are not cut out to be a developEEEEEEEEEEER? Because then you need to stay on top of THIIIIIINGS. Flexbox has been around for half a decade, what are you even talking abOOUUUUUUUUUUT?
@@svendbentjensen5512 Wow. Do you let your professional ignorance hang out this much all the time?
If you expect every developer to stay up to speed on everything all the time then you are an absolute idiot. I've been doing back end and cloud development for so long that I've not touched a UI in years. So maybe you should learn a little bit about what being a developer even is in 2020.
I have stopped the video in 6.45 ..just to give a thumbsUp (already a subscriber) ..and continue..!!
YOU are the best teacher-explainer in RUclips..!!
FANTASTIC TUTORIAL again.!!
Thanks for taking the time to make videos for us ..I know that it takes a lot of time and effort
It's a great video. Really appreciate it. Just a small suggestion. In 22:44 you won't actually need to use margin auto; to vertically center the text. There is a better flex boxy way of doing it. Just add justify-content: center and align-items: center in the .banner{} block. The text will be centered both horizontally and vertically
He probably wanted to make the code shorter, but yours is helpful too, thanx.
Hey man! I just finished this tutorial and I am absolutely baffled. You didn't waste a single second and explained everything clearly. I was struggling with the concept of flexbox. After watching your video I created my own full responsive layout in 2 hours with flexbox. You made my day. Thank you very much. Please stay well.
Best flexbox tutorial...
great!!!!
Hey man i was working on a project and couldn't get to understand how to fully use flex boxes until i saw you video, really well explained and the examples nailed it for me. I was able to correct my mistakes and finish my project ,thanks a lot !
How can someone be this good at explaining things?😅😅😅
Dude , trust me I have been to a lot of tutorial channels and they were not bad but your methodology tops them all, straight to point examples!!
With every example, I want to like this video. But I can only like it once. RUclips should be as flexible as flexbox.
I agree, RUclips is outdated...
Relatable man. Revisited this vid after months and wanted to like it again 😆
agree!
You want to like the videOOOOOOO? More than OOOOOOOONCE? Hahaha, that is such a funny notiOOOOOOOOON. Do you really like when people speak like THIIIIIIIIIIIIISSS?
Man I really hate this guy's intonation. Blah blah blah blah BLAAAAAH. Blah blah blah blah BLAAAAAH. Then you use flex SHRIIIINK. Mih mih mih mih MIIIIIIH. It can just remains it's natural auto SAAAAAAAIIJSE. It's as if he thinks everything is somehow more clear when he talks like that. There's also a level of arrogance to it. Every third sentence is said with the subtone "see how easy this is? I am such a brilliant teacher, I just need to mention something exist, then everyone will learn what it meeeeeeeeans"
I'm pretty sure it's the same guy who's behind the Udemy course "Git a web developer job", which was outdated and thus broken(april 2020), which didn't teach things but just mentioned them (in spite of the instructor from the beginning stating he would never just exactly that), and it had the same problem as this video: After a while you just want to make a drinking game. Drink every time he intonates like THIIIIIIIIIIS. You should probably not play this drinking game with strong alcohol, you WILL die.
Must funny part about that course is that it claimed you could go from knowing basic html and css to being hireable developer in just a 15 hour course. Lololololol. It's a downright scam. There is just no way you go from having basic no JS knowledge to suddenly know enough about node.js, NPM and Webpack to be hireable.
It's actually a really good example. He teaches students with no JS knowledge, and then he says "And then you just set up an array and use a JS selecTOOOOOOOOOOOR" and everyone is like "huh?"
Edit: Just realized that it says in the description that he IS in fact the buy behind that atrocious Udemy course. It's pretty saying that you can recognize that from his voice and intonation ALOOOOOONE. If you are a little more advanced, then maybe buy the course (for 9.99, not $199, are you insane!), but make sure to work through it within the 30 day refund-period. Around section 7 the first problems arises, around section 16 you really start realizing the issues. If you can and will troubleshoot a lot, then the course may actually be ok. But on the other hand, if you have the ability to troubleshoot stuff like node.js and webpack, then you probably don't need the course.
Anyway, I digress, it you don't want to waste your money, make sure to not buy the course and then let it lay around for 4 weeks, cause chances are that you are going to want a refund.
You are definitely the best in all youtube. You are the only one i have seem that uses real examples.
wish I could find you earlier! i would have saved lot of css work frustrations!
This is such a great video. I'm currently doing a distance learning degree and none of the course materials were able to explain this anywhere near as clearly and concisely, as you have. Thank you so much!
This is awsome! You're the man, great tutorial, very clear explanation. Your Udemy courses are also very good.
This is the best video about flexbox in the entire RUclips. You are the best teacher.
I so share your joy with 'margin:auto;' haha.. Thanx a zillion, life changing tutorial!
When u made that text center in the black box with simple line of code, I felt just wow that's too good, I used to do display: flex, justify-content:center, align-items:center
U made my day bro thank u
Came for the cat. Stayed for the tut.
LOL
That Rhymed bad.
How rude! Lol cannot love more its reaction
Being a mobile app developer, I can say this is the bestest video which made my interest to learn HTML. I used to do a little bit of HTML in my earlier times of Phonegap/Cordova... but this video is like a PRO level tutorial for anyone.
Super Awesome! you made a genuine subscriber!
Best video/tutorial I found so far on the internet after searching for so long. Thank you!
not even single dislike.... you are doing great bro...
Well, now, one year later, there are 30 dislikes to 4K likes. I wonder why anyone would dislike this video. Perhaps clicked the wrong icon by mistake?
I'm a graphic designer of 32 years now getting into website, CSS and html (never too late right?) I use Word>Press and lately jumped ship from DIVI and Brizy to OXYGEN. OXYGEN uses flexbox which is great and now thanks to this video helps me understand the options and why and how to use it. SUBSCRIBED and off to your channel.
23:04
"margin: auto;"
bind blown
For example #3 adding flex: 1 1 350px for the boxes will adjust the flex-basis to start at 350px and it will take up all the remaining space on big screens, if it comes to small screen it will adjust itself without adding any media queries. Thx. Your videos are gr8, keep 'em coming. :)
Great explanations! I am just beginning my journey to become a web developer and I've learned about flexbox the last two days. The way you laid out your explanations gives a clear understanding of the content. Thanks.
Best flexbox tuts I've ever seen. Examples does cover more than ordinary learning.
this is the best explanation of flexbox . I have seen many videos on LinkedIn learning , coursera and youtube but you nailed it . awesome . god bless you bro!
This is the absolute best tutorial on Flexbox concepts. Not relative, Thank you so much!!!!
I'm just making a website on commission for customer after a long time of break. Few days ago I got to know about flexbox and I didn't understand it until I watched this video. Great job!!
Haven’t been doing websites for a couple of years. This video and others you have produced are helping me get back into the flow. You are a great teacher.
I agree with Miodrag Veljovic. Definitely one of the most clear and understandable vids on coding. Wonderful.
Dude. I pained over horizontal and vertical entering for about 3 hours this morning. Then I found your video.
Right now, I can totally get behind the excitement of margin: auto;
I need refactor some of my code, and setting the height of a 'box' to match the browser height (minus any header and footer) is another story, but this should be a massive help alone. As well as the rest of what you have taught me.
Thank you sir.
Wow! Thank you! I just discovered Flexbox tonight, but... it became very clear very fast that without it, I'm going to have to add a zillion media queries, etc... Your tutorial was top-notch, and helped a LOT.
Thank you, thank you, THANK YOU. I have always struggled with flexbox, mainly because I've used Bootstrap almost exclusively so I didn't actually dive too deep into vanilla CSS and this video is making things SO MUCH EASIER. You are amazing.
Easiest and Greatest tutorial about flex on Web. Thank you.
Simple, clean and easy to understand. All the other tuts used complex examples that i spent more time figuring out there html and css that I missed most of the video.Excellent job. Hope you're still making videos.
You are the guru , you are the person whom can be called "Boss" , great tutorial ...
Mindblown and at the same time a bit frightened by the extent of things I have to learn as a newcomer of web design and coding. This made that process easier. Thank you so much for this very instructive and informative video!
I had no idea how to work with flexbox. When i watched tutorials but for real after watching this video I am surprised how amazing flexbox is and the guy teached. Just knew about your channel and subscribed
Damnnnnnnnnn... The first video that explained flexboxes to me. I love the scenario based examples. Much love.
This guy is officially my favorite teacher 🌺
As a backend developer I admired CSS for its many possibilities and options. But at the same time I never understood, why the alignments, centering and positioning were *ucking complex and hated CSS. After this video I think the backend developers are much more happier about the flex box than the frontend developers. :)
Being a Turk, born and grew up in Turkey, living in Germany for more than 14 years and not using English in my everyday life, I was able to understand all parts of your tutorial. Very clear and simple language, very precise explanation with very short and smart reasoning. With just one word: PERFECT!
Great video. Has flex changed over the years as we’re now in 2022. Your very clear and easy to follow unlike the many that are on yt. I thumbed you 4x
Thanks, I really appreciate that! I don't think flex has changed very much at all; however CSS Grid exists now and is super mainstream & ready for production. I have a video about CSS Grid on my channel (the thumbnail is green) from about 7 months ago. It's not fair to say that grid has "replaced" flexbox; I think both tools can now actually be used for the situations they were designed for. If you're trying to get a bunch of items to flex / fit nicely in a navigation menu area, I'd probably use flexbox. Or especially for the input / label example, and wanting one element to use up the remaining available space; I'd continue to use flexbox for that. If I was trying to setup an actual "layout" where I want to spell things out more I'd use grid. Also; if I need to control spacing in both the X and Y dimensions; then grid is the right tool for the job.
The way you explain this whilst showing visual clues works perfectly - I found this so easy to understand! cant wait to see more of your content, this has been very helpful - Thank you
By a long shot, the best flexbox tutorial I have seen yet. Great stuff, well instructed.
Where has this been all my life. Best flexbox tutorial out there. Thank you!!
Man, that was good. Simple everyday examples. Not only this, but in the process you are teaching basic css, too.
The best explanation, I've come across of Flex Box.
You know when you're looking for juuuuust the right video to help you out of a pinch, and you find the perfect one? That just happened when I found this. Thanks!
This video gives a practical demo of all the flex-box concepts I've learnt over the past couple days.
such a great explanation of flexbox. no comparison ever.
Best flexbox tutorial I've found and I've watched quite a few. Thanks!
I didn't even finish the tutorial , had to stop and comment and like it, great job using examples where we can see the actual layout on the web page, other tutorials, people just use bunch of divs with small content and maneuvering them around. I could get a clear picture.
Thank you! Every video I tried to watch was so annoying. You made it very easy to understand everything. Again, thank you for sharing your knowledge.
Amazing! Your english and pronunciation is super clear for ppl as me who are no native! And explication is even better! Really good video!
Even though i know all these i still watch the whole video. Your teaching skills are great.