This Advanced Flexbox Trick Is Amazing!
ฝัง
- เผยแพร่เมื่อ 21 ก.ย. 2022
- Full Video: • 6 Advanced Flexbox Fea...
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#Shorts
Full Video: th-cam.com/video/1zKX71GYisE/w-d-xo.html
jj
I hate that non-clickable links. It's just official youtube site
@@tegotypunikos it's to train your memorization skills, after degeneration from too much binge watching 😁
@@tegotypunikos highlight, right click, and go to.
I wish I saw this short so long ago. Watching the full video now, thanks!
Flex box finally something in css that works as expected.
Wait until it wraps
The most amazing thing about flex box is that IE supports it.
@@vothaisono
But
IE is dead so who cares lol
it always worked as expected. this "trick" always worked
@@adnanal-beda9734 align-content
This is one of the greatest benefits to flex box for some reason I’ve never used. Love it 🎉
I think the reason was grid
@@creativeturbo 🎯
Holy frick I never thought of that, thanks Kyle, I always used to wrap middle contents with another flexbox and then do justify-content space between.
Yeah. This insane!
Yeah same here 😅
same! so useful too.
Feels like a hack to use margins for this
+1. Wrapping middle elements in a container div and then justifying space between is better I think.
This has been my go to way of making my footer stick to the bottom of the screen in all my layouts 🚀
that was sick !! i always tend to flex-box justify center the middle one
animated Box With CSS
th-cam.com/video/gBmx3RmThDE/w-d-xo.html
The real pain comes when having to do responsive design with the wrapping of flexbox elements with dynamic widths
Yh it pretty much makes it all a pain in the ass
Bruh… ive been trying to find a shortcut to what you did in the end there for literally years 😂 thank you for finally closing that search
you can do margin bottom and top auto as well when it's a column direction ⬇️ i believe.
Thanks homelander for the valuable information 😀
That’s super useful for building navigation
Thank you! You just saved me from nested divs madness. 😀
This guy is in the wrong profession, he should be in the movies
Align-self...
When I first found this Out, was mindblowing 🤯 I use this very often
animated Box With CSS
th-cam.com/video/gBmx3RmThDE/w-d-xo.html
Flexbox is one of the best things that happened in CSS.
Kyle only uploads BANGERS
thank you. i searched a solution like this over months 💪🏻
Very useful Tip that I didn't know. I have faced problems making navigation bars now I will just use this!.
I’ve been looking for this solution for a long time! I never knew margin-left: auto would have such an effect
Lightbulb, lightbulb, lightbulb!!! I never thought of doing that :first-child or :last-child "hack" to flexbox to position a whole group of things. Wow!!
Thanks. Your content is always reliable and straight to the point. There exist a jackass with a very popular channel who always starts coding in the middle of his content while only showing half the code. His github is also nearly blank. I guess he is trying to sell content. You sir are awesome. You are not the Jackass.
Creating navbar a little less wordy now.
Where were you all these days?
Awesome tip.
Thanks a lot dude.
Such a quick and easy fix. Thanks for this.
Flexbox was probably one of the best additions in the history of CSS. Goodbye to float:left and clearfix hacks. It makes layouts so much easier and versatile.
I would rather use "align-self" and "justify-self" instead of margin for placing items in the container
after watching this guy for a while and seeing the dream face reveal, i am 100% convinced this is either dream doing a hobby or it's his long lost twin
flex:1 laughing in corner
this is so useful for header with avatar and navs
Love your videos my brother, straight to the point!
All the contents you posted are amazing....
try to do the same but with multiple lines 😉
It's actually possible 😅👍
I remember life before flexbox. I feel like the old people who talk about how they had to walk to school lol
In my day we had to float: left; and clearfix through 10 feet of snow. Uphill. Both ways.
I had to wrap stuff into redundant divs for this use case.
I know better now.
You can also use :nth-child()
i was looking for this , helped me thanku
Instead of margin-left and -right, I recommend using margin-inline-start margin-inline-end. This way even if the website's direction changes to right to left, the auto margin won't break as it adapts
I've mostly used margin auto on the center element within a flexbox container. Thanks for the tip.
Thank you!
Wow 😱 amazing! Thank you so much
Just what I have been looking for. Thanks alot bro
I just love this guy.
Wow,perfect teacher
thanks a lot this helps a lot with headers
that's exactly what i need right now
This is really helpful!
I love your css videos
instead of using marging use
align-content:space-around;
Thanks!
Thanks , that was helpful
This is awesome, I’ll definitely use it
thanks man
Nice! I will be using that in the future.
Yeah flex is pretty sweet, though does feel like I sometimes overuse it.
As long as it gets the job done
thank you, darling, this is helpful, I currently building a responsive website using flexbox and grid template
It's a good idea putting "flex-shrink: 0;" when using auto margins, because you might end up shrinking the rest of the elements on some browsers. ✌
animated Box With CSS
th-cam.com/video/gBmx3RmThDE/w-d-xo.html
That was amazingg!!
My savior
Goddamn i always used to wrap them in different boxes
Helpline 📲📩⬆️
Questions can come in⬆️
thats actually much better
I love flex-box, but I can I can never remember anything and basically trial and error my way around till it looks right.
Flex box really flexible
me acabas de salvar de un dolor de cabeza que tengo con unas alineaciones en algo que estoy desarrollando, gracias :D
I learned this from Kevin, but nice trick!
Thanks
This is pretty cool,I always had to use justify between 🤣
I feel proud because I knew it for a long time
I would have made an empty element with flex grow on it but I guess that’s fine
the way I do it is with 2 boxes, the outer one and the middle one and then space between. never thought of doing it this way but again while I'm okay at CSS I'm not excellent at it lol
nice sir i really like your of your toturials
there are many things that im learning from your toturials 💖💖💖 thanks.
What about breaking it into two container within flex box ? I think that’s what I’ve been doing since forever.
animated Box With CSS
th-cam.com/video/gBmx3RmThDE/w-d-xo.html
Umm anyone else who's going to make navbars with this😂😂
Let's guess some best uses:
Headers, nav bars,..
Boss I have advanced flexbox knowledge.
Boss: that's nice.
I need a video on the longest way to center a div, more code == more better
Are you stupid?
I will add on flex item : the gap of 2 and have it as margin
I use this a lot of times
this trick is very useful if i mean logo is meant to be at right and searchbar or other stuff at other side 🎉🎉
Awesome thx bro
cool, cool. thanks, Cyle!
Great for building navbars.
Thanks it’s for this realy good trick
The truth which matrix stuck people can't understand.
thts wht i exactly needed
But why does margin's "auto" behave this way?
But what if you do want a margin-right on the element in case the viewport is so small that there is no extra space?
Y it is always ur shorts are easy to understand
flex box the best property in css
My content: *commits tax fraud *
Me: your honour, Flex box !
grid is the best
What about align-self
The real problem with websites is all browsers don't act the same way.
I was not even aware of it😂
Damn that’s amazing
Would the two middle ones be second child and third child?
Flex box frogyy
Great work. Audio not clear.
What about align-self?
Align self doesn't work with flexbox
align-self works with *display: grid;*
@@iamenochleeim pretty sure it's justify self that isn't supported by flex. Not align self
can you add a tutorial explaining screens , why css behave the way it does with mobile screen in compered to monitors and resolution pixels ...