A days after recording this, a Micrsoft dev started working on subgrid for Chromium! Probably a ways out still, but it's in the works! 🥳
@amannan-1233 жыл бұрын
Let's hope for the best... 😎
@emanuelmilani79763 жыл бұрын
Without LayoutNG finished don't think even possible sugrid
@IorPerry3 жыл бұрын
the #SubgridAwarenessMonth gives some result!😁
@dave60123 жыл бұрын
🎉🎉🎉
@mahmoud-bakheet3 жыл бұрын
Yeah that’s good news
@brandonsayring3 жыл бұрын
You are a true gift to the front-end dev community. Thanks for everything you do, Kevin!
@ngetichishmael3 жыл бұрын
Prof. Kevin. You know there is a fine line between empowerment and arrogance. Some people think they are empowerment but in reality they are arrogant. However, you are empowerment. The fine line between empowerment and arrogance is humility. Just by listening to you I can tell deep down that you are very humble. You have a beautiful heart. May God bless everything you do. You are always helping other. Sharing knowledge is the greatest gift ever knighted to you. I wish had a friend like you. You are my mentor and I look up to you.
@KevinPowell3 жыл бұрын
Thank you sooo much for the kind words 🙏♥
@robmasters35692 жыл бұрын
thank you so much for producing this channel Kevin. in the short time I have been subscribed you have taught me so much and for that I am incredibly grateful, so thank you for everything you show us, it really isn't lost on me.
@stevelam1315 Жыл бұрын
Using place-contents=center property replacing align-items under without-subgrid class works well, the two list items lign up.
@hemiphillips7863 жыл бұрын
Another scenario where sub grid would be amazing -when you want to visually show a faint grid background on the whole page, and then have elements ‘snapping’ to the background grid.
@levsonc Жыл бұрын
This is situation where you probably prefer auto rows (default) to auto columns. To make columns to fit content it's probably better to use something like grid-template-columns: repeat(auto-fit, minmax(20em, 1fr)) (you need to set meaningful minimum size to let browser decide if it fits).
@SimonJification8 ай бұрын
Thanks, still helpful.
@catherinedesrochers3 жыл бұрын
Thanks so much 🙏
@DeadSinceBirth3 жыл бұрын
I Love ❤ Your Intro Music 🎶 😊 00:40
@qm3ster2 жыл бұрын
They should add an infinity keyword to not have the hacky 99 there for cases like this.
@josipbjezancevic5697 Жыл бұрын
Hello @KevinPowell. I just realized that it does not work in Chrome Version 116.0.5845.179 Mac OS (Experimental Web Platform features flag is on). It only works when I span list items over 9 rows max. Maybe we will have better luck with Chrome 117. Thanks a lot!
@AlexanderBelov-y8o Жыл бұрын
Now works in every browser except IE.
@Dimitar-T-Radev10 ай бұрын
I stole your --nice-shadow from the code link because I struggle with box-shadows and your is perfect and I needed it. Thanks 😅😅😅
@jpisello3 жыл бұрын
I realize this is an example to demonstrate the layout method, but for actually comparing two lists of items side-by-side, from an accessibility (specifically, a screen reader) standpoint, having two separate lists is hardly ideal. For this particular use-case, a single list of "pairs" of items, which could be laid out with a single grid, would be a more accessible solution, since the items to be compared would be next to each other in the DOM, so the reading order would match what a sighted user is doing. That said, I appreciate the tutorial on how to use grid-template-rows with subgrid, and I hope the other browser makers will get behind it. (I've had to deal with exactly this layout problem, and my solution is sub-optimal without subgrid ☺.)
@zxczxc65913 жыл бұрын
Hello Kevin, could you please make a video about mobile first layout?
@tomsommerdk11 ай бұрын
"grid-auto-row" is now "grid-auto-rows" and the "span 99" hack produces a different result now
@learnwithabdulbari3 жыл бұрын
Hey, I have found a solution in which you don't need a subgrid from your previous post on responsive layouts using subgrid. If you allow me I'll send you the code.
@josvelema23623 жыл бұрын
why not share it here?
@learnwithabdulbari3 жыл бұрын
@@josvelema2362 I'll share a codepen later.
@VideoNOLAАй бұрын
So "subgrid" is to "mail merge" as "grid" was to "mailing labels".
@sasca8543 жыл бұрын
Seems kinda hacky with the span 99 thing or the javascript thing... Wonder if there'll be an actual solution build into CSS someday.
@Killyspudful3 жыл бұрын
Wouldn't grid-row: 1 / -1 work? That's the standard way of saying 'use all available rows'.
@MilanRegec3 жыл бұрын
Well, I am just thinking, why not to use a table instead?
@emanuelmilani79763 жыл бұрын
Only old guys can understand this 😂
@KevinPowell3 жыл бұрын
For some types of content like this, a table could definitely be the best choice as well! They are really hard to deal with when it comes to responsiveness as well, whereas grid/subgrid is just so easy! This could also be used for other types of content as well though, which maybe I should have focused more on here :)
@studiosoftmorecambe68793 жыл бұрын
Tables were designed back in the last century for just this scenario. What can grids and subgids do that can't be easily achieved with tables in far less time? What is this modern trend amongst designers who try to find a complex solution, riddled with pitfalls, for what is a very a basic layout.
@SuperGylden3 жыл бұрын
I would also think it is tabular data which "should" be in a table. It would also benefit accessibility as the data are easier to compare between rows
@fabianmeyertoens3 жыл бұрын
1. Table markup has to be row based. Grid does not have this limitation. 2. Table columns can only be styled with a handful of properties. A border radius like in the video wouldn't be possible.
@tooFarGonexk4he4tu3s2 жыл бұрын
I would be so confused if I saw something like all grid items stacking on top of one another
@aram56422 жыл бұрын
So sad it's still missing from Chrome at the time of writing. My forms waiting so badly for it.
@KevinPowell2 жыл бұрын
It's getting closer... I was hoping by the end of this year, but I think by Q1 next year we have it.
@TeHzoAr3 жыл бұрын
this is what tables are for
@travisv Жыл бұрын
Tables are for tabular data, not layout.
@TeHzoAr Жыл бұрын
@@travisv you're the guy that reads the can of WD-40 to make sure it's an approved use