You can't do this without subgrid

  Рет қаралды 18,004

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 42
@KevinPowell
@KevinPowell 3 жыл бұрын
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-123
@amannan-123 3 жыл бұрын
Let's hope for the best... 😎
@emanuelmilani7976
@emanuelmilani7976 3 жыл бұрын
Without LayoutNG finished don't think even possible sugrid
@IorPerry
@IorPerry 3 жыл бұрын
the #SubgridAwarenessMonth gives some result!😁
@dave6012
@dave6012 3 жыл бұрын
🎉🎉🎉
@mahmoud-bakheet
@mahmoud-bakheet 3 жыл бұрын
Yeah that’s good news
@brandonsayring
@brandonsayring 3 жыл бұрын
You are a true gift to the front-end dev community. Thanks for everything you do, Kevin!
@ngetichishmael
@ngetichishmael 3 жыл бұрын
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.
@KevinPowell
@KevinPowell 3 жыл бұрын
Thank you sooo much for the kind words 🙏♥
@robmasters3569
@robmasters3569 2 жыл бұрын
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
@stevelam1315 Жыл бұрын
Using place-contents=center property replacing align-items under without-subgrid class works well, the two list items lign up.
@hemiphillips786
@hemiphillips786 3 жыл бұрын
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
@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).
@SimonJification
@SimonJification 8 ай бұрын
Thanks, still helpful.
@catherinedesrochers
@catherinedesrochers 3 жыл бұрын
Thanks so much 🙏
@DeadSinceBirth
@DeadSinceBirth 3 жыл бұрын
I Love ❤ Your Intro Music 🎶 😊 00:40
@qm3ster
@qm3ster 2 жыл бұрын
They should add an infinity keyword to not have the hacky 99 there for cases like this.
@josipbjezancevic5697
@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
@AlexanderBelov-y8o Жыл бұрын
Now works in every browser except IE.
@Dimitar-T-Radev
@Dimitar-T-Radev 10 ай бұрын
I stole your --nice-shadow from the code link because I struggle with box-shadows and your is perfect and I needed it. Thanks 😅😅😅
@jpisello
@jpisello 3 жыл бұрын
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 ☺.)
@zxczxc6591
@zxczxc6591 3 жыл бұрын
Hello Kevin, could you please make a video about mobile first layout?
@tomsommerdk
@tomsommerdk 11 ай бұрын
"grid-auto-row" is now "grid-auto-rows" and the "span 99" hack produces a different result now
@learnwithabdulbari
@learnwithabdulbari 3 жыл бұрын
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.
@josvelema2362
@josvelema2362 3 жыл бұрын
why not share it here?
@learnwithabdulbari
@learnwithabdulbari 3 жыл бұрын
@@josvelema2362 I'll share a codepen later.
@VideoNOLA
@VideoNOLA Ай бұрын
So "subgrid" is to "mail merge" as "grid" was to "mailing labels".
@sasca854
@sasca854 3 жыл бұрын
Seems kinda hacky with the span 99 thing or the javascript thing... Wonder if there'll be an actual solution build into CSS someday.
@Killyspudful
@Killyspudful 3 жыл бұрын
Wouldn't grid-row: 1 / -1 work? That's the standard way of saying 'use all available rows'.
@MilanRegec
@MilanRegec 3 жыл бұрын
Well, I am just thinking, why not to use a table instead?
@emanuelmilani7976
@emanuelmilani7976 3 жыл бұрын
Only old guys can understand this 😂
@KevinPowell
@KevinPowell 3 жыл бұрын
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 :)
@studiosoftmorecambe6879
@studiosoftmorecambe6879 3 жыл бұрын
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.
@SuperGylden
@SuperGylden 3 жыл бұрын
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
@fabianmeyertoens
@fabianmeyertoens 3 жыл бұрын
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.
@tooFarGonexk4he4tu3s
@tooFarGonexk4he4tu3s 2 жыл бұрын
I would be so confused if I saw something like all grid items stacking on top of one another
@aram5642
@aram5642 2 жыл бұрын
So sad it's still missing from Chrome at the time of writing. My forms waiting so badly for it.
@KevinPowell
@KevinPowell 2 жыл бұрын
It's getting closer... I was hoping by the end of this year, but I think by Q1 next year we have it.
@TeHzoAr
@TeHzoAr 3 жыл бұрын
this is what tables are for
@travisv
@travisv Жыл бұрын
Tables are for tabular data, not layout.
@TeHzoAr
@TeHzoAr Жыл бұрын
@@travisv you're the guy that reads the can of WD-40 to make sure it's an approved use
Learn To Use CSS Subgrid in 8 Minutes
8:54
Kevin Powell
Рет қаралды 33 М.
Creating a robust grid system using subgrid
36:22
Kevin Powell
Рет қаралды 45 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Subgrid & Container Queries change how we can create layouts
21:08
Kevin Powell
Рет қаралды 78 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 495 М.
My Favorite Tailwind Tools
11:51
Coding in Public
Рет қаралды 24 М.
Learn flexbox the easy way
34:04
Kevin Powell
Рет қаралды 731 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 68 М.
I'm not sure how much longer I can wait!
12:58
Kevin Powell
Рет қаралды 66 М.
A new approach to container and wrapper classes
25:27
Kevin Powell
Рет қаралды 270 М.
Learn CSS Subgrid in 14 minutes
14:19
Slaying The Dragon
Рет қаралды 90 М.
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 149 М.
Hello, Subgrid! with RACHEL ANDREW at Smashing Meets May 2020
47:01
Smashing Magazine
Рет қаралды 686
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН