One thing you said here I had never thought about was the fact that flexbox is controlled inside-->out, but grid is controlled outside-->in. That makes a lot of sense and actually clarifies a lot more of this. Thanks for all of the amazing videos!
@Allformyequine8 ай бұрын
I noticed that too, that's a great easy concept to keep in mind! Super!
@chrisstromberg65273 ай бұрын
This is really key to understanding the fundamentals of flexbox and what it is trying to do. Definitely helps me to better understand this.
@yenngocphan766Ай бұрын
This is my favorite flexbox video, because it uses a real life scenario. Keep up the good work.
@jacopo7106 ай бұрын
Excellent explanation! Flexbox is inside -> out, grid is outside -> in!
@kerrykreiter4459 ай бұрын
Thank you Kevin! “Content is king in flexbox” is going to stick with me. This video really helped me get a much better understanding of flex shrink and grow and how they can be used in many layouts. Thank you for developing and sharing such useful content!
@jfftck9 ай бұрын
I think the issue with people understanding flexbox is due to them not working with HTML tables, because, if they had, they’d see how both use a similar - if not the same - resizing behavior. Every time I use flexbox, I think of them as defaulting to being like a table row - where it can only have one row - and, just like tables, you have to define the behavior you want. This proves that the algorithm for tables were a good solution for layout, but breaking it up into two layout properties (flexbox and grid) gave us much more control over that algorithm. This is what CSS is about, I think all the interactive parts of CSS could be turned into a new language and that might make that simpler. It’s as though things like animations, transitions, and transforms are all complex due to having to fit into the CSS design specifications. I understand these very well, but find the syntax is the most complex part of it, since CSS was designed for layout and styling.
@magoxxii9 ай бұрын
Every time I have an issue to solve, you upload a video related! its so great! thanks for such amazing content always!
@StephenRayner8 ай бұрын
Same, finally digging deep into CSS as sick of being crap at it. 15 years experience, AWS, python, typescript, C#, React, React Native blah blah… But CSS every time I am just fighting it. Need to really learn more beyond box model, cascading, inheritance.
@mendosis9 ай бұрын
i wouldn't bother guessing or forcing the size of the middle part you should align images to avoid inconsistencies (which in my opinion is the best place to set flex-shrink to 0) and send metaboxes to the right-hand side (either with automargin or with flex-grow in the middle). then you can let the latter two play or fix the size of the metabox if your design is grid based
@yatskanych_oleksandr9 ай бұрын
That's why i prefer to use grid instead of flex. Thanks for useful content as usually
@نورالدينعمادتوفيق2 ай бұрын
the thing I always say is Flex is all about justice. it gives each item as much width as it needs ( that's the default behavior we change with grow, shrink, and basis). when we set an item with a fixed basis and flex-shrink of a 1, as soon as that item starts shrinking from its basis then every other item shall start shrinking at the same rate ( that's why we can set different shrink ratings). again the same thing applies to flex-grow, if two items are allowed to grow then as soon one item starts growing, the other also starts also growing. in this way flex achieves "justice" by making all items grow and shrink at the same time and rate as soon as one item starts growing or shrinking from its original basis.
@m.smanoj46883 ай бұрын
Anyone who is starting to learn web development, especially CSS, and responsive page design should learn CSS BASICS properly-master the basics. You should be able to visualize a design in your mind, even if someone asks you about it in a dream. And finally, try to watch almost all of Kevin Powell's videos without missing any. You will definitely never regret watching them. EAST OR WEST, KEVIN POWELL IS THE BEST!
@chrisstromberg65273 ай бұрын
A lot of us are coming here after learning the basics. The basics unfortunately don't explain the nuances of Flexbox and why it behaves as it does.
@m.smanoj46883 ай бұрын
@@chrisstromberg6527 as absolutely flexbox works inside out type contents of flexbox has effects on outside like told by Kevin
@reneeschke9 ай бұрын
Pleeease a Video explicitly exploring flex basis in column direction. Shrink and grow in column works conceptually so much different as you always (usually...) have room to scroll and therefore no limiting height
@satadhi7 ай бұрын
Sir, i would like to confess that you are simply the best.
@MartinDoudoroffLLC9 ай бұрын
Thanks!
@KevinPowell9 ай бұрын
Thanks so much!
@LukeDorny9 ай бұрын
Great overview. Thanks, Kevin.
@tutestheking78389 ай бұрын
most of the time I use grid just because it just does what i want, but using flex-shrink/grow/basis seems like a good option in some cases. Thanks for the content Kevin
@chrisstucker18139 ай бұрын
Both are very useful. It made more sense to me the moment I realised flex sizes are determined by the children content whereas grid is more about the parent. That’s why grid feels more comfortable, because you’re not worrying so much about the children content. In grid, the children abide the parent; in flex, the children control the parent!
@ilyesPR5 ай бұрын
So much pain healed thanks to this guy
@dongbinkim37739 ай бұрын
Feel like finally getting to Flexbox. Thank you!
@yogibarista28189 ай бұрын
I tend to use flex-basis: to control the "fixed-size" elements
@vladpopescu20049 ай бұрын
Hello Kevin, your link for flexbox simplified has left the analytics parameters out. Thank you for the consistently good content!
@shekar_webdev9 ай бұрын
felt like reading css manual while watching the video thanking you sir!🙏🙏
@tomiekk62559 ай бұрын
This is super interesting! Personally from what you showed I think I would use Flexbox over grid in such situation, are there any pros of using grid in this particular example?
Thanks... again 👍 Anyone else notice Chrome is not handling anchor positioning/popovers properly since a couple of updates back? Mine are always opening top left regardless of where the element they are anchored to is.
@Efibe86 ай бұрын
Thank you for your video! Love it.. as a begginer its very helpful
@simon-off9 ай бұрын
I'm gonna try to use flex some more when it's suitable. Grid is just so good though 😅 Great video! Thanks Kevin
@amanuelelhanan47169 ай бұрын
This statement opened my eyes Kevin, 4:20
@KeithTharp9 ай бұрын
Excellent!! I've been avoiding flexbox for so long, this helps a ton
@pinnaclewd9 ай бұрын
Im sticking with grid.....its all I need.
@Julie-gh5ir9 ай бұрын
Is there the same kind of video, but with grids ? I avoid learning it for so long.... Kevin seems to be the good teacher for me.
@somrigostsaas9 ай бұрын
@@Julie-gh5ir not the same kind, since there's so much more to cover with grid, but just go to his channel and search for "grid" and you'll find tons of helpful material!
@RickBeacham9 ай бұрын
You may need to learn Flex-box especially when many websites are using it instead of the wonderful GRID... :)
@Julie-gh5ir9 ай бұрын
I already know flexbox.@@RickBeacham
@StephenRayner8 ай бұрын
I can’t recall why but there are some situations where flex is more suitable than grid.
@rayyanabdulwajid76819 ай бұрын
Guys, just remember how to use display flex, justify content center, align items center, flex wrap: wrap, flex shrink, justify content space between, flex 1 ,etc
@haidubogdan87129 ай бұрын
recently I needed to solve styling for columns with stacked blocks. The solution was not grid, and not display flex but column-count : nr. I'm interested if you can make a video about column-count, column-span .... css
@0xbinarylol7 ай бұрын
Before this video i was controlled by flexbox. Now I'm controlling flex box
@ekchills69485 ай бұрын
taking advantage of flex grow and shrink really made my layots mch better
@JimKernix8 ай бұрын
at 3:15 you clicked and dragged each image in the article.hotle-listing and a faded out version of the photos was visible until you released your mouse. What is that? How does the browser enable that? I know it's not related to your video but that is an interesting behavior...
@atwarwithlife8 ай бұрын
you're the css goat.
@rrenildopereiraa9 ай бұрын
amazing stuff! this will help my projects a lot!
@jesisadhikari8 ай бұрын
Really saved my time dude, thanks!
@Julie-gh5ir9 ай бұрын
What are the differences between flex-basis and width ? I always use width... But perhaps it is not the better solution ?
@scott-richardson6 ай бұрын
I have always just assigned a percentage width on each of the flex items and then they shrink and grow nicely.
@Techgether9 ай бұрын
when is the appropriate situation when we use width vs flex basis? i still cant grasp the concept of flex basis :/ do u have a video on this?
@Techgether8 ай бұрын
@MrTicketeer understand the purpose of flex basis, but unclear how to use it..
@Techgether8 ай бұрын
@MrTicketeer yes I understand the purpose of flex basis better now. How to use it is my 2nd question and I meant like I don't understand the syntax or what unit to use under flex basis
@ofadiman9 ай бұрын
Flexbox is taking control of my life 😳
@JoelGallant2369 ай бұрын
Why not space-between?
@jagonza20009 ай бұрын
love it! 👏
@percurious9 ай бұрын
Talking about flex laxouts - just stumbled upon a problem where someone was a bit to loose with things - can you think of any usecase where you would want a flex-direction: column; combined with a flex-wrap: wrap; ? 🤔
@abhim63809 ай бұрын
Bought the course. Any plans to make grid simplified?
@GauravKumar-qe7iu9 ай бұрын
did display: grid; and grid-template-columns: auto 1fr auto; works same in this case?
@jan.kowalski9 ай бұрын
Excellent explanation. Thanks!
@Lucifer-vz4hg9 ай бұрын
man is saving us
@ToyotaCharlie8 ай бұрын
this episode was very Canadian with all the "outs" ❤️🇨🇦😉
@proteus19 ай бұрын
Grid and Flex both have their advantages.If I was programming Grid, would make a rule for cloning rows. Grid row-d to copy parent. D for duplication of parent. No brainer to me. Why make life complicated.
@OCEMTechZone9 ай бұрын
Great Sir 🎉
@quark20129 ай бұрын
How many times I fight with this problem :) Thanks
@vilijanac9 ай бұрын
It would be nice if would resize and flex different images to a max-with.
@djamaatul8 ай бұрын
im using flex-1 instead flex-grow-1, when use case use flex-1 vs flex-grow ?
@einatblackrose9 ай бұрын
That's very helpful. Thank you
@MrJettann9 ай бұрын
If I need consistent layout, usually I'm using grid
@KevinPowell9 ай бұрын
yeah, grid is probably an easier choice here, and where I'd have gone first, which I sort of alluded to druing the video, but sometimes it's nice to know how to wrangle flexbox a little.
@svnbeats67006 ай бұрын
To be honest i use both 😂
@moritzdeiaco27989 ай бұрын
The og border lime hack! Nice video
@AtiqurRahman-gj6mg7 ай бұрын
This is really helpful
@tayfun63785 ай бұрын
we are here to learn and all we see is your directions to your other videos and your course.
@RickBeacham9 ай бұрын
Why did you stop using Firefox? :(
@xyster713 күн бұрын
the main issue with flexbox is working with someone else code not understanding idea of layout, it is just mental struggle when it comes to a simple things to make them easy reusable. It takes time and often it is not really worth.
@sumitsinha9959 ай бұрын
He Kevin there must be starter code .Like there is full code availble.
@Fad-kun3 ай бұрын
Thanks
@sargaa84717 ай бұрын
what's happening with the webcam ?
@azizbaouchi7 ай бұрын
Which browser do you work on ?
@ClarkSell9 ай бұрын
THAT HOODIE!!!
@vardhankulkarni61435 ай бұрын
GODDDDDDD !!!!!
@GerritforBazeja9 ай бұрын
this is nice to know. Tnx
@sjd_style8 ай бұрын
Amazing tnx
@LokiDaFerret9 ай бұрын
This video is a good example why you don't use flex. Grid is the right tool for the job. At least in this layout. However you missed a great opportunity to explain flex shrink and grow better. Because they are a ratio. If they are all set to one then your ratio is 1:1. If one of them is set to 2 then your ratio is 2:1 etc. In other words the speed at which something grows and shrinks relative to its siblings can be controlled. A missed opportunity 😂
@toptravelingoffers76669 ай бұрын
Why don't you add your videos in playlist. example this video. It also becomes very difficult to find specific videos within many videos so having a playlist or play store serial would be very helpful. I just started web dev[CSS] and I love your videos so I have a request for you to make a complete serial playlist for beginners. Your videos are amazing and the playlists are beautiful but I don't know which playlist to start with,, so please make a videos to guide beginners step by step serial playlists🙏
@KevinPowell9 ай бұрын
Once you get past the very basics, which I have a playlist on, it can be hard to organize things after that because it often comes down to what you're trying to accomplish, but I'll see what I can do 😊
@safariknight32399 ай бұрын
I swear I only understand this because of Kevin
@gE00139 ай бұрын
With the introduction of "grid", I think "flex" is going to be used way less. Basically, if you have a pile of elements, you are probably going to use "grid" because you want to keep things aligned.
@DeadShotFPS8 ай бұрын
Not at all. As Kevin says in this video and many others, Flexbox is most useful in cases where you want each item’s size to be determined by its content.
@gE00138 ай бұрын
@@DeadShotFPS I don't get your point: since is very common that piled elements have different content, if you use flex it would be harder to make them aligned. And the reason is exactly what you said.
@srinathsagar47369 ай бұрын
make a video on GRID
@RohitKumar-xs3wh7 ай бұрын
nice
@OghamTheBold8 ай бұрын
Lack of understanding hints at hidden algorithm
@AlThePal788 ай бұрын
almost want to use tables lol
@SmileyJack.9 ай бұрын
10:14 E O_O -> --_--
@AJCastello6 ай бұрын
Let's go back to tables, seriously.
@planesrift8 ай бұрын
Just do everything on canvas /s
@DeepakKumar-ob6ps9 ай бұрын
Same price without breakfast? 😂
@NoToBusinessCasual8 ай бұрын
I hate Flexbox. Completely unreliable and undependable. Rubbish concept.
@chezchezchezchez7 ай бұрын
Tell us what you love then.
@douglasjamesmartin5 ай бұрын
It's just garbage, unbelievable you guys have to work with this stuff
@udayabhaskar6 ай бұрын
Lot of bs in this video tbh, unlike other good ones in this channel.
@user-ouss8 ай бұрын
Please don't speak fast
@BeautifulTurkish8 ай бұрын
You can use 0.75 speed
@ТестТестович-г2о9 ай бұрын
I don't use flexbox, because it feels like an old man trying to learn teenager's slang. Disgusting. Why it's not "grid" or something?
@amanrohilla44356 ай бұрын
Why are you using these thumbnails so frequently 👎
@Team-hf7iu6 ай бұрын
You, ungrateful person. Why focusing on that? Can't you see he is doing his best to help us. And his thumbnails are very good and captivating according to me and to most people if not he won't have the number of views and good feedback he has. Stop that