No, Flexbox isn't "good enough"

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 213

  • @screamtwice
    @screamtwice Месяц назад +74

    Kids these days don't know the struggle of clearing floats, haha. We're all blessed to have Flex and Grid as options, thank goodness!

    • @midwestmatthew9752
      @midwestmatthew9752 Месяц назад +1

      I remember "the Holy Grail of CSS" (the actual term that was used) being an equal height, three-column layout that worked in Internet Explorer 6. I knew a guy who actually figured it out with the CSS of the early 2000's, and it seemed like magic! 😅

    • @KOBE42__
      @KOBE42__ Месяц назад +4

      Yeah and tables too

    • @HyuLilium
      @HyuLilium Месяц назад

      Had a fossil interview me on clearfix and didn't know the answer. Glad I didn't work with that guy

    • @alman_harbi
      @alman_harbi Месяц назад

      Clearfix

    • @HyuLilium
      @HyuLilium Месяц назад

      @@screamtwice my comment was removed, weird

  • @aurelien_aep
    @aurelien_aep Месяц назад +83

    I started using grid after watching your videos, and it has become my go-to layout display and flexbox is now really secondary 😅

    • @KOBE42__
      @KOBE42__ Месяц назад +6

      Same here! I find Grid way more enjoyable and satisfying to use.
      Flex for navigation and elements that wrap (like post tags). Otherwise, Grid is king for layouts

    • @denoww9261
      @denoww9261 Месяц назад +2

      I default to grid too. I use flex if the children need to resize independently from one another based on their content, otherwise grid usually gets the job done for me.

    • @go_better
      @go_better Месяц назад +1

      Yep, same

    • @theweirddev
      @theweirddev Месяц назад +1

      Exactly! Me too.

    • @CantIllaoiThat
      @CantIllaoiThat Месяц назад

      traitor

  •  Месяц назад +15

    I think the problem is grid is that it has to many CSS properties and people keep forgetting them. It does not help that each property also has several way to setup (grid-template-columns, grid-auto-columns, grid-auto-flow, grid-column, grid-column-gap etc.).

    • @hannessteffenhagen61
      @hannessteffenhagen61 Месяц назад +1

      I mean that's just in general a problem with HTML/CSS. It's turned into this platform where everything is supposed to be possible, it's infinitely flexible and thus also infinitely complicated.
      Building layouts from scratch with simpler tools is more labour intensive, but also easier to understand. And of course as long as we're all still using and building for the web realistically these simpler methods will _probably_ not really see much use.

    • @itsmenatika
      @itsmenatika Месяц назад +1

      ​@@hannessteffenhagen61when with flex i could learn it, with grid i needed to reopen docs to be sure what property that was... Grid has too many options compared to flex

    • @levsonc
      @levsonc 29 дней назад +2

      It's not that hard if you understand the system. 'grid-template' defines explicit grid (can be shorthanded to 'grid'). 'grid-auto-*' define implicit grid (can be shorthanded to 'grid' other way with 'auto-flow' keyword). 'grid-auto-flow' defines how elements are fit within grid one after another. 'grid-row/column/area' are just saying where to place element (like grid coordinates). 'gap' is just gap between rows and columns ('grid-' prefix is redundant for it).

    • @scrung
      @scrung 22 дня назад

      grid-template-areas:
      ”a b b”
      ”a b b”
      ”c c c”;
      difficulty level: S+

  • @donmorris4506
    @donmorris4506 Месяц назад +21

    I’m with you Kevin on this topic. I do still use flexbox a lot, but if “I was stuck on a desert island with one option “, it would be grid.
    I also use the sass version of bootstrap a lot because it is so good and kept up to date.

    • @atlantic_love
      @atlantic_love Месяц назад +1

      Do you use a CDN for that?

    • @CodecrafterArtemis
      @CodecrafterArtemis Месяц назад

      I really don't like that, AFAIK, Bootstrap still uses `@import`s for everything, given how Sass is going to deprecate them eventually.

    • @donmorris4506
      @donmorris4506 26 дней назад

      @@atlantic_love no. I install via npm. It gets bundled with the app via webpack.
      I also typically use bootswatch themes.
      Here is a typical setup when I have both bootstrap and bootswatch installed via npm
      $navbar-padding-y: 0.2rem;
      $enable-gradients: true;
      $secondary: gainsboro;
      $body-color: lighten(black, 20%);
      @import "bootswatch/dist/spacelab/variables";
      @import "bootstrap/scss/bootstrap";
      @import "bootswatch/dist/spacelab/bootswatch";
      @import 'ngx-toastr/toastr';
      input[readonly] {
      background-color: gainsboro;
      }

    • @donmorris4506
      @donmorris4506 26 дней назад

      @@CodecrafterArtemis that's a non-issue.

  • @venomus9286
    @venomus9286 Месяц назад +8

    I think it would be the other way around. 99% of layouts can be done in grid. When I was starting out, I watched so many tutorials and spent so much time practicing grid that I became very comfortable using grid over flexbox. Nowdays with subgrid, its even more amazing.

  • @shutterassault1
    @shutterassault1 Месяц назад +3

    Finally used grid for real in a production layout recently and loving it. Not sure why I didn't play with it earlier.

  • @MyOwnPufferFish
    @MyOwnPufferFish Месяц назад +4

    I used to be all about flexbox, but recently I've implemented a lot of of grids, except for stuff like navbars and such. It's quite nice and very easy with responsive design.

  • @SnakesRaven
    @SnakesRaven Месяц назад +4

    Took me some time to learn grid but it has become my prefered option now for a robust and structured layout

  • @AntonioGonzalez-we4wx
    @AntonioGonzalez-we4wx Месяц назад +48

    I like to think about Grid and Flex as two different families:
    Grid are parents being more strict and telling their childs what to do (And when poorly done it can lead to childs not adapting well)
    Flex are parents being less strict and allowing their childs to do what they want (And when poorly done it can lead to childs messing everything up)
    No family is perfect but as long as the work is done they will be fine.

    • @kuwandak
      @kuwandak Месяц назад +1

      Grid: for elements of the same width; flexbox: for elements with the same spacing.

    • @YannMetalhead
      @YannMetalhead Месяц назад +1

      That's a great analogy.

    • @MrSprinkles1F369
      @MrSprinkles1F369 Месяц назад +1

      Children*

    • @levsonc
      @levsonc 29 дней назад +1

      Yep, that's why I started to prefer grid: just set rules on parent and children are just fit within. There can be even just text child. You can't align text childs with flexbox that well.

    • @levsonc
      @levsonc 29 дней назад +1

      The other way to word it: grid is for layout. Strict rules to how the content must be represented in given space. Flexbox is literally for flexibility. Things like toolbars (it was originated from) where elements can move along in various ways, and it's important to give children some freedom.
      One can be used instead another in simple cases, e.g. flexbox can be used to make layout to some extend, but that's not the best or most convenient usage. Flexbox is almost useless for vertical directions. Grids cannot make 'margin: auto' separator between group of elements like flexbox (again something like toolbars).

  • @keharacek
    @keharacek Месяц назад +1

    After watching few of your videos about grid I actually started to use grid way more since it tends to just solve the same problem in an easier manner. Not everything needs to be and should be a grid layout, but whenever stuff starts to get complicated, there's a good chance that grid cracks it.

  • @teugene
    @teugene Месяц назад +1

    I started using grid much more about 2 years ago, and while it took a while to understand, using grid make a whole lot more sense and is way better than flex in certain layouts. I think where most people struggle is named grid template areas and lines, which is much more complex but isn't necessary. One can do a lot even with tthe simple ones. Those who dismisses grid are giving it less credit than it should. It will not go wrong to make the effort to understand grid (and subgrid!). It opens up a whole world of a difference and possibilities.

  • @TheSP337
    @TheSP337 Месяц назад +1

    At my first year as FE dev I was using only flex - because I had no other choice I had to support older browsers. A year later I had already dropped the older browsers support and I was still using mostly flex for stuff. But after watching some of your videos I shifted to grid and now I use it even more than flex because I realize how much more "flexible" it is that flex. Lol. Thanks Kevin.

  • @charlescox7672
    @charlescox7672 Месяц назад

    Yep, you've made a convert here! I've used Grid (sparingly) in the past, but found it to be more cumbersome to understand and implement than Flex, so ended up using Flex almost exclusively. Your simple examples in this video have definitely worked to show me that Grid is pretty much every bit as easy (if not easiER in many cases) to use than Flex. Gracias! 😊

  • @robertwattner
    @robertwattner Месяц назад +3

    Awesome video! 7:55 within cells... interlinked 😂

  • @ISandbagI
    @ISandbagI 27 дней назад

    omg i did a full double take - how did I miss position absolute inside a grid! this is gold.

  • @IamBojan
    @IamBojan Месяц назад +10

    It's not Flex or Grid... It's Flex and Grid.

  • @gE0013
    @gE0013 Месяц назад +1

    I wish you made this video 1 moth ago! Darn! :D I had a project with a lot of overlapping stuff and I didn't know the solution was using grid.

  • @mmoplayah2874
    @mmoplayah2874 Месяц назад +3

    I have been using Grid after I have understood it with your videos! 😅

  • @anuvette
    @anuvette Месяц назад

    i used to think grid was extremely confusing but i watched all your videos including that subgrid one and im getting better at it

  • @jamesgulland
    @jamesgulland Месяц назад

    Using grid for overlapping text on an image is a genius use case, never thought of that! The other day I was creating a landing page with a hero image and h1 using flex and found this very limiting in terms of what I could achieve. Thanks for the heads up.

  • @D4T3cK
    @D4T3cK Месяц назад

    I just learned grid and used it in a project. It´s an amazing tool. And with all tools, you just need to know when and how to use it to it´s maximum potential.

  • @MrKOHKyPEHT
    @MrKOHKyPEHT Месяц назад +1

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) - is that legal? I mean it looks like cheat :D Awesome video. I've changed my mind and my opinion about grid layout. Definitely to favourites playlist. Thank You Kevin =)

  • @keaton718
    @keaton718 Месяц назад

    Kevin Geary's dynamic layout video, for Bricks for WordPress, really opened my eyes to what grid can do, and how so many websites today are like 99% grid.

  • @ometaxas
    @ometaxas Месяц назад

    This video came out at the best time for me. Was looking at grid for a project and thus helped me a lot. Thank you.

  • @mariomario4676
    @mariomario4676 Месяц назад +2

    We love these specifics ❤❤💪☝️

  • @davi48596
    @davi48596 Месяц назад +4

    Please front-end friends, don't underestimate Grid

  • @AlThePal78
    @AlThePal78 Месяц назад

    Great video I need to spend 2 hours just messing around with grid

  • @sajon_
    @sajon_ Месяц назад

    Just started watching, but want leave this comment for people that don't use grid over flex because it's too complicated. I was like that before. But there are some scenarios where you can't exactly get the layout you want with flex easily. Now after taking a little bit of time to practice grid, this is now my to choice.

  • @NapKingCole84
    @NapKingCole84 Месяц назад

    I know a decent amount of grid, but I usually end up having to look something up. Flexbox I have down, it's easy, but I want to be as familiar with grid as it! Please Kevin, teach me all of your grid secrets lol. I'll go back and watch the getting started video just in case.

  • @journeym4n-l5s
    @journeym4n-l5s Месяц назад +3

    I was the "I don't need grid in my life" kind of person until started to use it.

    • @tippyee152
      @tippyee152 Месяц назад +1

      This was me 😂😂
      I ❤️ grid

  • @eccenux
    @eccenux 29 дней назад

    You've mentioned you need a media query if you need to change number of columns in flex. That is true, but it's worth noting that in many cases you would actually need a container query... And container query would make things even more complicated. But when you use grid and min-max then size is actually based on the container size (even when th browser doesn't support container queiries). So using grid when you need to have columns then repeat(auto-fill, minmax(200px, 1fr)) is actually like a container query.

  • @siig9905
    @siig9905 Месяц назад

    Grid certainly makes responsiveness easier. I had a website I just finished entirely with flex and I went and redid the whole thing with grid. There a learning curve of adjustments but once you figure out and incorporate subgrids you have more control

  • @CodeWithAbed
    @CodeWithAbed Месяц назад

    They both are really great, grid is just more complex to learn but It's really good

  • @ibrahimkeles9867
    @ibrahimkeles9867 Месяц назад

    you are doing always helpfull videos man thank you, you got my like on overlapping content :) that was new to me and i will definitely try to get used to grid

  • @tippyee152
    @tippyee152 Месяц назад +1

    I don't get why people don't understand how grid makes layouts so much easier...

  • @lyddriethefemboy
    @lyddriethefemboy 29 дней назад

    I would personally solve the first problem with max-width, that'd be a perfect solution
    and if you want your flex container to also possible change size, when then max-width can be something like calc(100% / 3 - 3px)

  • @josefaguilar2955
    @josefaguilar2955 Месяц назад

    I'm working off a design thats a lot like #3 in your example with overlapping content. My first thought was grid. If the content changes but the layout doesn't, it's time for grid!

  • @dameanvil
    @dameanvil 24 дня назад +1

    00:00 📚 Grid layout can be simple and offers advantages over Flexbox, especially for certain tasks.
    00:31 🧱 Grid is more effective for creating consistent columns and rows compared to Flexbox, avoiding issues like uneven element stretching.
    02:50 🛠️ Using Grid simplifies layout management, like setting columns or rows without needing additional Flexbox tweaks.
    04:51 🎛️ Grid allows for a structured, responsive layout that works seamlessly without extensive media queries.
    05:37 📏 Spanning columns and rows in Grid is straightforward and avoids the complexity Flexbox requires for similar tasks.
    06:47 🖼️ Overlapping content is easier to achieve with Grid, which handles complex layouts more naturally than Flexbox.
    08:21 🌐 Grid has strong browser support, often better than many other CSS features, making it a reliable choice for web layouts.

  • @tsuyoshi4226
    @tsuyoshi4226 Месяц назад

    I didn't know that grid is this flexible. I'll start using it more

  • @sayedaliaqamousavi9064
    @sayedaliaqamousavi9064 Месяц назад

    Less code and better experience is the way to choose which one should I use for a task.😊

  • @E6hosting
    @E6hosting Месяц назад

    That video at the end is for my viewing pain. Flexbox is a little bit easier to follow for me.
    I was still using floats for everything until I discovered your videos last year.

  • @CrxzyYT
    @CrxzyYT Месяц назад

    i find myself using a mix of flexbox and grid. Like for example i use flexbox to layout the main content sections or simple lists. I use grid for specific things like creating a card with an image description and title. Ill use a grid to set the image in front and stack text elements like title and descriptions. I could do that with flexbox but then i would be nesting flexbox into flexbox into flexbox to get it to work.

  • @go_better
    @go_better Месяц назад

    I don't know, I can speak for myself - my work only improved since I started using grid after one of your recent videos.
    It's not a silver bullet, but it takes a lot of hassle away. Especially with the logic controls sizing of children / lets children choose their dimensions.

  • @tapioo9707
    @tapioo9707 Месяц назад

    I think that modern adaptive and complex layouts have created the need for CSS Grid. The range of overlaps and even entirely disappearing elements is almost impossible with Flexbox than with Grid. Still, if users fully understood how the Flexbox algorithm works, "the flex-basis-width difference" , Heydon's bird algorithm… we would surely see more Flexbox layouts."

  • @isaidstream4547
    @isaidstream4547 Месяц назад +1

    I always had a problem with flex padding and gap. Grid is the solution

  • @yatskanych_oleksandr
    @yatskanych_oleksandr Месяц назад

    In my projects i use grid maybe about 90% against to the flex. Grid is very convenient and useful

  • @oniricPrj
    @oniricPrj Месяц назад

    thanks man! I honestly did not know grid so I'm going to use it now 🙂

  • @yogibarista2818
    @yogibarista2818 Месяц назад

    Different applications. For me, Flex is primarily used for "cards" where I may or may-not require wrapping, while Grid is used for a structured layout.

  • @AkioJunichiro
    @AkioJunichiro Месяц назад

    Grid = strict parent who tells to their children what to do
    Flex = childrens get comfy, the parent adapt to their comfort.

  • @aramun8808
    @aramun8808 Месяц назад +2

    Just combine flex and grid in layouts. You don't miss anything.

  • @RyebuckCoppercap
    @RyebuckCoppercap Месяц назад

    I've been working on my personal website, and dang if switching from flexbox to grid for the old school 3 column layout wasn't the best decision I've ever made for responsive design
    (My layout was as such:
    LeftSidebar MainContent RightSidebar
    For big screens,
    LeftSidebar MainContent
    RightSidebar MainContent
    For medium screens, and
    MainContent MainContent
    LeftSidebar RightSidebar
    For mobile and small screens)

  • @alexandrsachishin962
    @alexandrsachishin962 Месяц назад

    I totally agree with you about grid use cases and browser support, but one of main grid drawbacks is its payload on a browser (about 30% more than usual block model)

    • @Ragnar_Oock
      @Ragnar_Oock Месяц назад +1

      By payload you mean layout performance? If so, stop worrying about it. The performance cost is next to inexistent. The only time you might have issues is if you use animated templates but you would have the same issue with other layout tools

  • @Agent00Biber
    @Agent00Biber Месяц назад

    I have seen some complex flex layouts, where grid could have made it much easier. Named grid lines / areas the dev tools can help a ton with clarity as well. If clarity / ease of writing would be the only difference, I wouldn't mind that much but these complex flex layouts usually require a lot of wrapper divs. Eventually, these will add up and slow down everything else...

  • @NotKyleChicago
    @NotKyleChicago Месяц назад

    I just switched from flex to grid since I needed new items to align in the grid instead of being center aligned, since the two items didn't align with the three columns above. The flex items had a specific width so they didn't stretch.

  • @Erril-1
    @Erril-1 Месяц назад

    I totally agree, CSS Grid is so much easier! Parent is in control of the children, perfect and easy

  • @user-rr7qg5yt1n
    @user-rr7qg5yt1n 28 дней назад

    with grid-areas my life so fucking ez thanks to you kevin.

  • @WHAT-GRINDS-MY-GEARS
    @WHAT-GRINDS-MY-GEARS Месяц назад

    I love grid thanks. I also think flex and grid are great. Specifically once they came out with subgrid.

  • @composernotes
    @composernotes Месяц назад

    great discussion thanks Kevin

  • @iDizzasTeR
    @iDizzasTeR Месяц назад

    Yesterday I abused grid so hard to implement a HUGE single page complicated UI. Would've been a nightmare with Flex

  • @xilliman
    @xilliman Месяц назад

    „It worked for several years from now, why should i change it to grid?“
    „Grid is too complex, I don’t need it“
    That’s some of the discussions I have at work.
    I know what you mean Kevin :(

  • @iamavegetable1936
    @iamavegetable1936 Месяц назад

    I don't know why, I use flexbox a lot in my first attempt, maybe because I thinking (wrongly) grid as the new table. But I have to admit that grid can do it with less effort. I like a lot the overlapping column/row with grid. Grid is very powerful, maybe with time, flexbox disapear ?

  • @keenanflogerzi5218
    @keenanflogerzi5218 Месяц назад

    Kevin’s PLEADING with us on this one! 😂

  • @AnimusAgent
    @AnimusAgent 26 дней назад

    To anyone who says something is too hard and they don't want to learn it, I ask: What are you doing in this industry? Your job is to learn continuously, every day, to build things in the best, most maintainable, and scalable way possible. But I suppose some people are just mediocre professionals.

  • @pinnaclewd
    @pinnaclewd Месяц назад

    I never bothered using Flex very much but Grid is a different monster and been using it for at least 2/3 years now.

  • @adminator
    @adminator 26 дней назад

    THANK YOU

  • @nustaniel
    @nustaniel Месяц назад

    I do think grid is more complicated than flexbox, but I like combining both. My sidebar menus typically uses a grid. Could I use a flexbox, sure, but I like the way grid lays it out and how I can categorize things into a grid-area, etc. I'll use a flexbox to make my header squish and stretch with a centered search box, a logo on the left and a dark mode toggle on the right. And so on. Both have their uses. And while grid can be complicated at first, once you start understanding it, it's a nice thing to use alongside flex.

  • @codernerd7076
    @codernerd7076 Месяц назад

    I 100% agree with everything in this video!

  • @SNAKEx197
    @SNAKEx197 26 дней назад

    Thank you for this video bruv!

  •  Месяц назад

    I would like to see someone provide information about performance costs of grids vs flexbox. Is flex 'faster' or more power efficient than 'grid' (especially on mobile devices)?

  • @MikeNugget
    @MikeNugget Месяц назад

    Fun fact: there is still no way to track the wrap event of the child nodes in a flexbox container.
    I’ve been waiting for the :wrapped pseudo-selector for about 8 years 😅

  • @WePiphany
    @WePiphany Месяц назад

    @5:00 is where it gets too complicated. I believe the reason flex got so popular, instead of grid, is Chris Coyer’s flex-box poster. We need a grid poster. Maybe there is one. The grid rules and syntax and so very deep compared to grid.

    • @b1mind
      @b1mind Месяц назад +1

      They made a grid poster at the same time.... This has more to do with people than the code.

    • @WePiphany
      @WePiphany Месяц назад +1

      @@b1mind agree. There’s more to learn with grid.

  • @JosephCodette
    @JosephCodette Месяц назад

    Grid isn’t difficult, flex is ! Grid is so much more logical and structured, flex just confuses me with all the patchwork of syntax. Nice tshirt btw ! Is that from Star Wars ?

  • @hannessteffenhagen61
    @hannessteffenhagen61 Месяц назад

    I'm not even a frontend person and still this take sounds silly to me. Grid and flex are pretty different things, for larger layouts you often want grid-like things for smaller layout grid is usually to in-flex-ible (hah). But even if you were to want to force one of the two, it'd be grid no? A lot of the things you do with grid are just straight up impossible with flex (or at least a lot harder than they otherwise would be).

  • @TomasMisura
    @TomasMisura Месяц назад

    I attempt to combine grid and flex because there are numerous cases where it can be utilized. I concede that Flexbox alone might not suffice, but Grid is less intuitive than Flexbox and I tend to avoid it as the suitable solution.

  • @Ragnar_Oock
    @Ragnar_Oock Месяц назад +1

    "support for grid is not enough" : how much more do you want it's tracked at 99.5% on caniuse and if you only use what is shown in the video even internet explorer 11 of all browsers will support it !
    "But flex is enough" : yes... So is float and table layouts... But you're not using floats or table layouts (hek most don't even know what I am talking about)

  • @yufgyug3735
    @yufgyug3735 Месяц назад

    quality content. makes me hate css just a tiny bit less

  • @ashishkumar-jo7cj
    @ashishkumar-jo7cj Месяц назад

    I don't know why but everyone tries to stay away from grid. Maybe because of the more options in grid, people find it more complicated than flexbox.

  • @pokefreak2112
    @pokefreak2112 Месяц назад

    90% of the time when I see layouts like 6:12 they're "feature islands" logically grouped into rows or columns
    In that case you don't actually want item 4 to be stuck on the grid, it should just be in a column together with 1 so either can take up the space they need. So I'd use a flex row containing flex columns for that layout.
    I do use grid sometimes but from my experience it's incredibly rare I need a layout that's best suited to grid...

  • @mathetacticsng
    @mathetacticsng Месяц назад +1

    How about padding for each item without gaps?

    • @Ragnar_Oock
      @Ragnar_Oock Месяц назад +1

      Just put a padding on the children and don't set a gap on the parent

    • @velocibadgery
      @velocibadgery Месяц назад

      @@Ragnar_Oock For like a nav-bar, I will do padding inside the LIs, then do a border on the outside, then do a gap between the LIs. It creates a really nice effect. Of course, flex.

  • @yt_blackeyepg
    @yt_blackeyepg Месяц назад

    Really good video, thank you for your content and knowledge that you share :>

  • @MutantNinjaDonut
    @MutantNinjaDonut Месяц назад +7

    RUclips should prevent commenting before a person has watched the video all the way through 😂

    • @DrownedLamp
      @DrownedLamp Месяц назад

      "OMG complete garbage I'm out!"
      Time watched ⌛ 20 seconds

  • @Undwell
    @Undwell Месяц назад

    You might persuade me (one of these days), Mr. Powell. 😂

  • @anfytrion
    @anfytrion Месяц назад

    Grid is 💪💪💪💪

  • @maerosss
    @maerosss Месяц назад

    For me, grid is like regex. It's good, but it's too complicated, so whenever I learn it, I forget it again after not using it for a while.

  • @josuedelossantos9442
    @josuedelossantos9442 Месяц назад

    Grid seems to be more useful than I thought 🤔

  • @dahahaka
    @dahahaka Месяц назад

    The right tool for the right job

  • @henriquematias1986
    @henriquematias1986 26 дней назад

    Why making a table should be so complicated?
    From my experience table just works and there is rarely a situation where i have real life benefit from not using table.
    When not needing a table i use flex and it just works too.
    I dont recall ever having a problem that wasn’t easily solvable without having to do a PHD curse on “modern css”

  • @danielalbert6834
    @danielalbert6834 Месяц назад

    Thanks

  • @markjotep
    @markjotep Месяц назад

    The only thing that keeps me away from using grid is the syntax.
    You only need to remember few syntaxes with Flex. For parent and child to work.
    Just my opinion.

  • @MrMairu555
    @MrMairu555 Месяц назад

    More importantly.... The moon with the Rebel base will be in range in thirty minutes!

  • @blackstormgaming3779
    @blackstormgaming3779 Месяц назад

    Please create video on how to create responsive design using grid in tailwind CSS the approach

  • @greateagle8799
    @greateagle8799 19 дней назад

    I only use grid for overlapping imgs

  • @PWSandyTube
    @PWSandyTube Месяц назад

    idk why people choose and debating between grid or flex. 😄

  • @justingiovanetti
    @justingiovanetti Месяц назад

    HTML tables …. forget semantics. I’m just joshin’ floats for life.

  • @KijkEenVogel
    @KijkEenVogel Месяц назад

    After watching a different vid from Kevin, i tried grid for the first time. I find it much easier than I thought it would be. I do wonder how to section my html content now. I put the grid on main, all sections are grid children, but then I have to add grid to those children too if I want to place items within it. I removed the sections and now every element is a child of main and thus a grid item. But it makes the code a bit less structured I find. Am I wrong to say grid makes the html code less readable or am I just using it wrong?

    • @Ragnar_Oock
      @Ragnar_Oock Месяц назад

      You can still use wrapper items, either by setting the section as display content (basically replacing the element by it's children in the document flow) or using subgrid

    • @KijkEenVogel
      @KijkEenVogel Месяц назад

      @@Ragnar_Oock That was actually very helpful :) display: contents allowed me to add those section-elements back in, which I find very appropriate in the html-flow of things :) Thx!!

  • @dangerfox1776
    @dangerfox1776 Месяц назад

    Grid doesn't work in my proprietary environment :(

  • @CarlosHernandez101400
    @CarlosHernandez101400 Месяц назад

    Can we all just agree that a table saw and a skill saw will both cut your wood, and each one has its advantages?

  • @terrencemoore8739
    @terrencemoore8739 Месяц назад

    I like grid more because it gets me closer to what I'm trying to do. Flex box adds unnecessary features i have to eork around by using

  • @strategistaow3520
    @strategistaow3520 Месяц назад

    Grid is harder to setup for me

  • @T1Oracle
    @T1Oracle Месяц назад

    You should use both.