Тёмный

This Advanced Flexbox Trick Is Amazing! 

Web Dev Simplified
Подписаться 1,6 млн
Просмотров 477 тыс.
50% 1

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

Опубликовано:

 

21 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 210   
@WebDevSimplified
@WebDevSimplified Год назад
Full Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1zKX71GYisE.html
@fitnessfreaksmotiv
@fitnessfreaksmotiv 7 месяцев назад
jj
@tegotypunikos
@tegotypunikos 7 месяцев назад
I hate that non-clickable links. It's just official youtube site
@Pictor13
@Pictor13 5 месяцев назад
​@@tegotypunikos it's to train your memorization skills, after degeneration from too much binge watching 😁
@drviagrin3798
@drviagrin3798 5 месяцев назад
@@tegotypunikos highlight, right click, and go to.
@tonybowen455
@tonybowen455 5 месяцев назад
I wish I saw this short so long ago. Watching the full video now, thanks!
@cherubin7th
@cherubin7th Год назад
Flex box finally something in css that works as expected.
@adnanal-beda9734
@adnanal-beda9734 6 месяцев назад
Wait until it wraps
@vothaison
@vothaison 6 месяцев назад
The most amazing thing about flex box is that IE supports it.
@proudyy
@proudyy 5 месяцев назад
​@@vothaisono But IE is dead so who cares lol
@cafelutsa_
@cafelutsa_ 3 месяца назад
it always worked as expected. this "trick" always worked
@playvideogames369
@playvideogames369 24 дня назад
​@@adnanal-beda9734 align-content
@thedigitalceo
@thedigitalceo Год назад
This is one of the greatest benefits to flex box for some reason I’ve never used. Love it 🎉
@creativeturbo
@creativeturbo Год назад
I think the reason was grid
@ontheruntonowhere
@ontheruntonowhere 10 месяцев назад
@@creativeturbo 🎯
@thatsalot3577
@thatsalot3577 Год назад
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.
@arhangelohek-UKR
@arhangelohek-UKR Год назад
Yeah. This insane!
@georgesaunders3532
@georgesaunders3532 5 месяцев назад
Yeah same here 😅
@keanuclintignacio697
@keanuclintignacio697 5 дней назад
same! so useful too.
@aleksd286
@aleksd286 Год назад
Feels like a hack to use margins for this
@Lambdaphile
@Lambdaphile Год назад
+1. Wrapping middle elements in a container div and then justifying space between is better I think.
@SamuelGfeller
@SamuelGfeller 2 месяца назад
The real pain comes when having to do responsive design with the wrapping of flexbox elements with dynamic widths
@yourlocalhuman3526
@yourlocalhuman3526 15 дней назад
Yh it pretty much makes it all a pain in the ass
@Anonemmas
@Anonemmas 2 месяца назад
This has been my go to way of making my footer stick to the bottom of the screen in all my layouts 🚀
@PokeBowl82
@PokeBowl82 Год назад
that was sick !! i always tend to flex-box justify center the middle one
@artibansal7406
@artibansal7406 Год назад
animated Box With CSS ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gBmx3RmThDE.html
@alecmather
@alecmather Год назад
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
@disgracefulcoder1818
@disgracefulcoder1818 Год назад
Thanks homelander for the valuable information 😀
@marcoscabrinirianidosreis6655
@marcoscabrinirianidosreis6655 13 дней назад
That’s super useful for building navigation
@nested9301
@nested9301 Год назад
you can do margin bottom and top auto as well when it's a column direction ⬇️ i believe.
@hussainbharmal5998
@hussainbharmal5998 Год назад
This guy is in the wrong profession, he should be in the movies
@samben08
@samben08 Год назад
Thank you! You just saved me from nested divs madness. 😀
@bape155
@bape155 27 дней назад
Align-self...
@CaliburPANDAs
@CaliburPANDAs Год назад
Kyle only uploads BANGERS
@lady1kaka
@lady1kaka Год назад
When I first found this Out, was mindblowing 🤯 I use this very often
@artibansal7406
@artibansal7406 Год назад
animated Box With CSS ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gBmx3RmThDE.html
@alexanderg4404
@alexanderg4404 Год назад
thank you. i searched a solution like this over months 💪🏻
@JayantBB78
@JayantBB78 2 месяца назад
Where were you all these days? Awesome tip. Thanks a lot dude.
@aakashkhamaru9403
@aakashkhamaru9403 5 месяцев назад
Creating navbar a little less wordy now.
@Its_King180
@Its_King180 3 месяца назад
Very useful Tip that I didn't know. I have faced problems making navigation bars now I will just use this!.
@DarylMalibiran
@DarylMalibiran 2 месяца назад
Flexbox is one of the best things that happened in CSS.
@dc366
@dc366 Год назад
I’ve been looking for this solution for a long time! I never knew margin-left: auto would have such an effect
@zaroio2533
@zaroio2533 Год назад
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
@shinoobie1549
@shinoobie1549 Год назад
I remember life before flexbox. I feel like the old people who talk about how they had to walk to school lol
@Dylan_thebrand_slayer_Mulveiny
In my day we had to float: left; and clearfix through 10 feet of snow. Uphill. Both ways.
@dableb
@dableb Год назад
Such a quick and easy fix. Thanks for this.
@Dzikrullah_999
@Dzikrullah_999 Год назад
this is so useful for header with avatar and navs
@CompositeNation
@CompositeNation 5 месяцев назад
Love your videos my brother, straight to the point!
@AnthonyJackman
@AnthonyJackman 6 месяцев назад
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!!
@FiReLScar
@FiReLScar Год назад
You can also use :nth-child()
@GyroCannon
@GyroCannon Год назад
I had to wrap stuff into redundant divs for this use case. I know better now.
@thegreenroom5820
@thegreenroom5820 Год назад
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.
@Navistar-cu2po
@Navistar-cu2po 4 месяца назад
Thank you!
@ayyappan8836
@ayyappan8836 6 месяцев назад
All the contents you posted are amazing....
@proxy5061
@proxy5061 7 месяцев назад
i was looking for this , helped me thanku
@iThou001
@iThou001 6 месяцев назад
I just love this guy.
@karis7539
@karis7539 Год назад
that's exactly what i need right now
@zagrios6686
@zagrios6686 Год назад
try to do the same but with multiple lines 😉
@luismiguelcarrionsantamari5390
It's actually possible 😅👍
@clementborisov7050
@clementborisov7050 Год назад
I've mostly used margin auto on the center element within a flexbox container. Thanks for the tip.
@Noam-Bahar
@Noam-Bahar 9 месяцев назад
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
@dirudeen1421
@dirudeen1421 Год назад
Just what I have been looking for. Thanks alot bro
@Dylan_thebrand_slayer_Mulveiny
@Dylan_thebrand_slayer_Mulveiny 5 месяцев назад
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.
@0xPanda1
@0xPanda1 Год назад
thanks a lot this helps a lot with headers
@devkasunlakshitha
@devkasunlakshitha Год назад
Wow 😱 amazing! Thank you so much
@tresvecesno7071
@tresvecesno7071 4 месяца назад
Thanks!
@iliyanalinski9385
@iliyanalinski9385 Год назад
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. ✌
@artibansal7406
@artibansal7406 Год назад
animated Box With CSS ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gBmx3RmThDE.html
@rasafchik5791
@rasafchik5791 5 месяцев назад
Thanks
@kalebakeitshokile1366
@kalebakeitshokile1366 Год назад
I love your css videos
@mxsniper223
@mxsniper223 6 месяцев назад
thanks man
@mk_57
@mk_57 3 месяца назад
I would rather use "align-self" and "justify-self" instead of margin for placing items in the container
@ashikgurung1236
@ashikgurung1236 5 месяцев назад
Wow,perfect teacher
@sapokurt2854
@sapokurt2854 Год назад
This is really helpful!
@samkroes4611
@samkroes4611 5 месяцев назад
This is awesome, I’ll definitely use it
@fakedevdutt
@fakedevdutt 3 месяца назад
That was amazingg!!
@sudhanshukushwaha6351
@sudhanshukushwaha6351 10 месяцев назад
flex:1 laughing in corner
@kirksurber7262
@kirksurber7262 Год назад
Nice! I will be using that in the future.
@spidermanclips7966
@spidermanclips7966 Год назад
Thanks , that was helpful
@user-op4zy8jg9j
@user-op4zy8jg9j 5 месяцев назад
instead of using marging use align-content:space-around;
@ayangjibrut
@ayangjibrut 9 месяцев назад
thank you, darling, this is helpful, I currently building a responsive website using flexbox and grid template
@Bot-lj6nu
@Bot-lj6nu Год назад
Flex box really flexible
@Tikayy
@Tikayy Год назад
Yeah flex is pretty sweet, though does feel like I sometimes overuse it.
@wailbrch4071
@wailbrch4071 Год назад
As long as it gets the job done
@allthecuteanimals615
@allthecuteanimals615 6 месяцев назад
My savior
@rustty321
@rustty321 Год назад
me acabas de salvar de un dolor de cabeza que tengo con unas alineaciones en algo que estoy desarrollando, gracias :D
@jasonleelawlight
@jasonleelawlight Год назад
I learned this from Kevin, but nice trick!
@chrisauret3785
@chrisauret3785 10 месяцев назад
I love flex-box, but I can I can never remember anything and basically trial and error my way around till it looks right.
@erdum
@erdum Год назад
I feel proud because I knew it for a long time
@dionysus1210
@dionysus1210 8 месяцев назад
I use this a lot of times
@code4fun22
@code4fun22 Год назад
nice sir i really like your of your toturials there are many things that im learning from your toturials 💖💖💖 thanks.
@WallaceThiago
@WallaceThiago Год назад
Goddamn i always used to wrap them in different boxes
@whatsapp176
@whatsapp176 Год назад
Helpline 📲📩⬆️ Questions can come in⬆️
@MrTomro
@MrTomro 9 месяцев назад
thats actually much better
@khazifire
@khazifire Год назад
This is pretty cool,I always had to use justify between 🤣
@chawkichalladia1812
@chawkichalladia1812 Год назад
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
@Tibiafy
@Tibiafy 9 месяцев назад
Awesome thx bro
@mavdotj
@mavdotj Год назад
I would have made an empty element with flex grow on it but I guess that’s fine
@JEsterCW
@JEsterCW Год назад
Great for building navbars.
@flawlessmyles
@flawlessmyles Год назад
I will add on flex item : the gap of 2 and have it as margin
@siddique_
@siddique_ Год назад
this trick is very useful if i mean logo is meant to be at right and searchbar or other stuff at other side 🎉🎉
@brunosupico2385
@brunosupico2385 Год назад
Thanks it’s for this realy good trick
@neinnine4592
@neinnine4592 Год назад
cool, cool. thanks, Cyle!
@asante5979
@asante5979 12 дней назад
But why does margin's "auto" behave this way?
@googlesboy3420
@googlesboy3420 Год назад
thts wht i exactly needed
@omegaz4123
@omegaz4123 3 месяца назад
Let's guess some best uses: Headers, nav bars,..
@rproctor83
@rproctor83 Год назад
Boss I have advanced flexbox knowledge. Boss: that's nice.
@shlokbhakta2893
@shlokbhakta2893 Год назад
I need a video on the longest way to center a div, more code == more better
@bavidlynx3409
@bavidlynx3409 Год назад
Are you stupid?
@_Arbaz_98
@_Arbaz_98 4 месяца назад
Y it is always ur shorts are easy to understand
@hugodsa89
@hugodsa89 Год назад
What about breaking it into two container within flex box ? I think that’s what I’ve been doing since forever.
@artibansal7406
@artibansal7406 Год назад
animated Box With CSS ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gBmx3RmThDE.html
@offlinehub
@offlinehub 6 месяцев назад
grid is the best
@rishiraj2548
@rishiraj2548 Год назад
Great work. Audio not clear.
@SukeDom_YT
@SukeDom_YT 7 месяцев назад
Umm anyone else who's going to make navbars with this😂😂
@DZ-lp6ls
@DZ-lp6ls Год назад
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?
@romjmaa3127
@romjmaa3127 9 месяцев назад
flex box the best property in css
@Jrizy.
@Jrizy. 11 месяцев назад
Would the two middle ones be second child and third child?
@sudipnext
@sudipnext Год назад
Already knew that
@blackxdeft5791
@blackxdeft5791 8 месяцев назад
The truth which matrix stuck people can't understand.
@benji9107
@benji9107 Год назад
Damn that’s amazing
@ajsyt
@ajsyt Год назад
Pro Tip: have 3 containers and justify space-between 😎
@RootEntry
@RootEntry Год назад
What about align-self
@ManasTunga
@ManasTunga 9 месяцев назад
I was not even aware of it😂
@xclimatexcoldxx
@xclimatexcoldxx Год назад
The real problem with websites is all browsers don't act the same way.
@GarfieLD-Mami
@GarfieLD-Mami 9 месяцев назад
Lets more plzzz 🎉🎉
@sayyidnaeemulhaqm.k8966
@sayyidnaeemulhaqm.k8966 Год назад
3 rows and 3 columns 9 div i whant .
Далее
6 Advanced Flexbox Features You Probably Don’t Know
14:54
The Most Important Skill You Never Learned
34:56
Просмотров 85 тыс.
Теперь мы - музыканты!
00:46
Просмотров 50 тыс.
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 426 тыс.
Avoid these 5 beginner CSS mistakes
21:38
Просмотров 59 тыс.
Learn CSS Flexbox in easy way
9:09
Просмотров 18 тыс.
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,4 млн
Learn CSS Subgrid in 14 minutes
14:19
Просмотров 52 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 898 тыс.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Просмотров 159 тыс.
How to take control of Flexbox
16:01
Просмотров 103 тыс.