Stop Using Margins With Flexbox

preview_player
Показать описание
🌎 Find Me Here:

#Shorts
Рекомендации по теме
Комментарии
Автор

One of my tasks of recent weeks was to remove about 300 gaps and turn them to margins )

alexandergrebennikov
Автор

I think it's worth noting that you can just apply a @supports rule so that if gap is actually supported then you can apply that, otherwise as a fallback you can just use margins. Great video otherwise Kyle, keep up the amazing work!

Deathborn_
Автор

Thanks kyle you're such a blessing especially your js videos, they're just a must for me i went from using js for some interactivity in my web pages to build entire front-end app using js (REACT) and i have also created 2 npm librairies one for manipulating js object and one for forms in REACT.
Thanks Kyle i've learned a lot from you and Kevin Powell

sarrthecode
Автор

Gap is supported on all major browsers and you can also use it on flex layout

_PCode_
Автор

I am proud to announce that I already knew about this feature. However, it is a good thing to have for those who don't. Thanks for the video!

Njb-yptd
Автор

Funny how this video and another one you did appeared just as I needed this stuff! Thanks!

branislav
Автор

I love short videos! Thanks for sharing

alvaroprietovideos
Автор

This is quite possibly one of the best new features, it just solves so much headaches!

TheChodex
Автор

Sadly gap isn't as widely adopted as we'd like, so falling back to margins is a good idea for the time being... I had a problem with my mobile browser not implementing it, and it was 3 relases behind...

shapelessed
Автор

How come I never heard of this in all my developing career😢😭

jakeblake
Автор

I really like theese very short videos. Good content. Css is so damn hard when u start to do more complex animations with javascript + css .

lauris
Автор

it doesn't work in older safari
I used this feature a lot but after I realized that, it was quite a dizaster. I finished with own solution to put <style> with two set of margins of children, just to replicate the same "gap" style behaviour.

and no, I can't just tell people to upgrade their browser

dkaraush
Автор

Is this where the clothing store got their name?

jazzymichael
Автор

I knew about gap but i didn't know column and row gaps existed this is so much better

lordrandom
Автор

Gap is one of the best css properties.

pankichal
Автор

You are awesome!!!
Thanks from Egypt

ay-at
Автор

You only use Grid and flexbox combo for large layout purposes, for children and minor design one should use flexbox

TheNeel
Автор

Thanks for the video sir
please can you make one on
grid-column and not
grid-template-columns
Thanks 👍🏿

baptistikenna
Автор

Using the gap property is soo Mich better than margin. It prevents these weird offsets that you encounter with the very first flex item or at the point where the item wraps.

jorims
Автор

Gap is really good, while working with flex or grid, haven't been using much margin lately

HDAllGames