Learn CSS Subgrid in 14 minutes

  Рет қаралды 40,927

Slaying The Dragon

Slaying The Dragon

22 күн бұрын

🚨🚨🚨 COURSES - slayingthedragon.io 🚨🚨🚨
Join the discord - / discord
In September of 2023, Subgrid, a new CSS feature gained official support across all of the major browsers, allowing grid-items with their own grid, to inherit the rows and columns from the parent grid.

Пікірлер: 109
@Abid-if5fh
@Abid-if5fh 20 күн бұрын
The comeback of a legend ..
@TheThirdWorldCitizen
@TheThirdWorldCitizen 20 күн бұрын
Thanks. I didn’t appreciate subgrid until I had to work with named grids that had sticky headers
@yosefff19
@yosefff19 20 күн бұрын
I was rewatching all your previous posts and got so excited when I saw your new upload!
@pazzuto
@pazzuto 3 күн бұрын
Just found your channel and I really like your videos and the way you explained. As you talk about grid/subgrid, it'd be great to see a video of one or more popular templates out there (header, aside, main, footer, etc.). I'd love to see your approach. Thank you for the awesome videos.
@elasticoGomez
@elasticoGomez 14 күн бұрын
This is exactly what I’ve been looking for! Great content sir
@jykata7134
@jykata7134 20 күн бұрын
Thank you, for the helpful information! Keep making these great videos!
@alyssapuype732
@alyssapuype732 19 күн бұрын
I just watched your other videos for the 10th time. Amazing how you just uploaded one again! Waiting for the javascript course!
@extremeboysmart
@extremeboysmart 13 күн бұрын
Thank you! Your explanation are great!🎉
@ThelndraS
@ThelndraS 16 күн бұрын
🎉Wow, I finally saw your new work after such a long time. Very good tutorial~❤
@BrentTech
@BrentTech 20 күн бұрын
Superb explanation! Thanks. The only thing I'd suggest is for more explanation on what things like the 1/4 and 1fr and such mean.
@semperprimum26
@semperprimum26 11 күн бұрын
What an amazing tutorial. Thank you!
@N1rOx
@N1rOx 20 күн бұрын
great to have you bacK!
@danrowllet
@danrowllet 18 күн бұрын
amazing tutorial as always thank you!!
@longyuanchuan
@longyuanchuan 17 күн бұрын
Wonderful... This tutorial has five stars to me, it's concise, well explained, illustrative, and leaves nothing unchecked... Applause
@ashutosh_tiwari
@ashutosh_tiwari 16 күн бұрын
Wonderful explanation buddy!! Keep up the good work.❤️
@AbubakarsadiqIdris-mz5fq
@AbubakarsadiqIdris-mz5fq 13 күн бұрын
Thanks bro I always enjoyed ur tutorials
@issa_the_ghost1257
@issa_the_ghost1257 19 күн бұрын
First off, congrats on 100k 🥳 Secondly, I didn't even know that this feature existed!! I usually just make nested grids or use Bootstrap. So thanks for the info !!
@Caprice_08
@Caprice_08 20 күн бұрын
I needed that so much🎉🎉
@edwassermann8368
@edwassermann8368 20 күн бұрын
very nice work. thank you!
@chrismachabee3128
@chrismachabee3128 14 күн бұрын
Truly a greeat lesson. Fantastic. Very uunderstandable aand vitally important thank you.
@kaiso69
@kaiso69 6 күн бұрын
Thank you man please upload more video about CSS Like building actual project from start to end
@user-eo1vz9lt8g
@user-eo1vz9lt8g 20 күн бұрын
I bought your CSS course and it was a good investment, learning to use a page builder and Wordpress but knowing what the page builder is built upon is extremely helpful, of course it's not just CSS but since the builder lays down the HTML and Javascript and PHP, you can go a lot further if you can use custom CSS, looking forward to your vanilla Javascript course...
@yacobee
@yacobee 11 күн бұрын
Very useful. Thank you.
@senseislade
@senseislade 20 күн бұрын
finally, you've kept us waiting Ramzi
@zack288
@zack288 20 күн бұрын
He’s coming back on 100k. Congrats
@andinuruljihad2912
@andinuruljihad2912 11 күн бұрын
whoa this feature is incredible... great explanation, too.
@ichiroutakashima4503
@ichiroutakashima4503 15 күн бұрын
This channel definitely slayed!
@brentguiao4861
@brentguiao4861 4 күн бұрын
Great explanation thanks❤
@Sammorris207
@Sammorris207 18 сағат бұрын
thanks for the clear explanation
@Filaxsan
@Filaxsan 16 күн бұрын
Very useful!! 💪
@mansulol5458
@mansulol5458 7 күн бұрын
the king is back 😭🙏🏾🙏🏾
@imtseku
@imtseku 20 күн бұрын
Nice to see you again ✌
@abdurrobr34l
@abdurrobr34l 20 күн бұрын
After a long time got ur video... 👍👍
@deltaranzyd1587
@deltaranzyd1587 20 күн бұрын
wow, the legend is back
@ZockaRocka
@ZockaRocka 15 күн бұрын
This was perfect 👌
@JeffParker45
@JeffParker45 15 күн бұрын
Very Good! 👏👏👏
@genshingamer8361
@genshingamer8361 16 күн бұрын
What a great day when your video comes Thnx bro also expceting more new videos and your new courses also stay heathly.:)
@codewithzero
@codewithzero 13 күн бұрын
thats great. thanks dear
@ShahriarCode
@ShahriarCode 20 күн бұрын
ayooooo the king is back ⭐⭐
@FumezCreates
@FumezCreates 16 күн бұрын
The master has returned 😤
@godofwar8262
@godofwar8262 20 күн бұрын
Dragon is back 🔥
@sadeemdzakaria3005
@sadeemdzakaria3005 8 күн бұрын
You are one of the best CSS teacher on yt
@mohsinahmedohi
@mohsinahmedohi 18 күн бұрын
Worth subscribing you.
@ShahriarCode
@ShahriarCode 20 күн бұрын
man it was really helpful for me becuase i always faced prblems here
@Dylan_thebrand_slayer_Mulveiny
@Dylan_thebrand_slayer_Mulveiny 20 күн бұрын
We've come so far from the good old days of 'float: left' and clearfix hacks. The old way of doing layouts like this involved a lot of nesting with flex, but it was clunky as hell. This new approach is really awesome. However, as of today Caniuse puts browser support for this feature at 88%, which is quite low for it to be used in production.
@AyaanMahib
@AyaanMahib 20 күн бұрын
Love your videos ❤❤❤❤
@AyaanMahib
@AyaanMahib 20 күн бұрын
I am only 12
@mirjalol49
@mirjalol49 20 күн бұрын
U are back
@harshalmali856
@harshalmali856 11 күн бұрын
awesome video gained something new
@jackright9530
@jackright9530 8 күн бұрын
Great video
@albedesigns
@albedesigns 20 күн бұрын
Great Video!
@harunyussuf3593
@harunyussuf3593 20 күн бұрын
You replied 1 min after video uploaded. Watch it first
@imredoyyy
@imredoyyy 19 күн бұрын
Welcome back ❤
@hriso83
@hriso83 19 күн бұрын
The best tutorials for learning css
@Igor-vk8fl
@Igor-vk8fl 13 күн бұрын
SO SIMPLE!!! OMG
@kirbyenriquez5417
@kirbyenriquez5417 17 күн бұрын
wow .. thank you :))))
@timothyshiu2263
@timothyshiu2263 16 күн бұрын
wonderful! Does subgrid work with any number of nested-grid-that-use-parent-grid, for example, `div.grid > div.subgrid1 > div.subgrid2`? does subgrid also work with `grid-template-columns: repeat(auto-fit, minmax(..., 1fr))`?
@krateskim4169
@krateskim4169 19 күн бұрын
best explanation
@hudojnik93
@hudojnik93 11 күн бұрын
Do you have any idea how good your channel is and you only have 14 uploads so far? I have ADHD and you are the only I can actually understand.
@horatiuranca9005
@horatiuranca9005 16 күн бұрын
perfection
@Mike-rt2vp
@Mike-rt2vp 17 күн бұрын
I can't believe it's taken so many decades to get this far for creating layouts using CSS.
@sierraoscardelta
@sierraoscardelta 12 күн бұрын
epic.. didn't know of this .. now to undo my horrible hacks
@user-gy5sm4bd2m
@user-gy5sm4bd2m 19 күн бұрын
Я не знаю кто ты, но ты объяснил все за 14 минут лучше, чем наши "разработчики" объясняют это все за час. Спасибо!
@royandescartes
@royandescartes 9 күн бұрын
The GOD off CSS
@Kronical_Lpd
@Kronical_Lpd 20 күн бұрын
another super clean tutorial, I could not have explained it better! Glad to see you back my guy! Classic Ramzi recording at 1am
@anonmityslayer
@anonmityslayer 13 күн бұрын
Finally legend got his password correct
@slayingthedragon
@slayingthedragon 13 күн бұрын
😂
@RB_MAFIA
@RB_MAFIA 20 күн бұрын
come back with React 🔥🔥 please
@reydantegarcia8776
@reydantegarcia8776 20 күн бұрын
HEEYYY welcome back
@zekimertdik7364
@zekimertdik7364 20 күн бұрын
We missed you so much bro. Please prepare better next time. Slaying a dragon shouldn't take this long.
@slayingthedragon
@slayingthedragon 20 күн бұрын
I agree
@endlacer
@endlacer 18 күн бұрын
very nice. some Feedback: -mute or at least make the type sound quieter -bit faster pace would be nice. you sometimes Show stuff that does not matter (like that you can change the color of the grid overlay in the devTools), you said it urself 😅 - eg padding the body does not belong in this video. it has nothing todo with subgrid keep up the good work :)
@krishjain1239
@krishjain1239 20 күн бұрын
Please tell about how to use masonry library with sidebar on a webapp.
@FadliAlamsyah
@FadliAlamsyah 9 күн бұрын
13:31 with style css like that, how to handle view if only one grid item?
@kc499z3
@kc499z3 10 күн бұрын
Hi, do you plan offer local prices for your courses? I would love to buy the css one, but my currency is weak compared to dollar.
@slayingthedragon
@slayingthedragon 10 күн бұрын
I don't, however in about a month my CSS course will be uploaded to my KZbin channel, it'll be free for everyone
@giahuybui8323
@giahuybui8323 4 күн бұрын
I added another lorem to the first box and it's width started to be bigger than the other boxes. And even with the span 3 and minmax(350px,1fr) if i add more lorem, one of the boxes starts to grow and display on top each other ;( .Can anyone explain why? ;(
@ImprovingAryan
@ImprovingAryan 16 күн бұрын
teach us mern stack please
@mrshahcloud
@mrshahcloud 16 күн бұрын
Hi, what does the "span 3" means? Thanks.
@kudorgyozo
@kudorgyozo 14 күн бұрын
and what about making each item display: flex and setting flex-grow: 1 on each paragraph?
@slayingthedragon
@slayingthedragon 14 күн бұрын
Yea that's what I personally do, subgrid though is great if you're using grid
@hamzamohammad01
@hamzamohammad01 14 күн бұрын
I was just thinking of doing margin-bottom: auto
@ohtpz
@ohtpz 20 күн бұрын
Hes back??
@alexfurtado1759
@alexfurtado1759 16 күн бұрын
Slaying Thank you !!! Now you talking really slow... I can flow alone nice
@FahadKhan-vt5nc
@FahadKhan-vt5nc 20 күн бұрын
Please make videos on javascript
@luankosaka
@luankosaka 11 сағат бұрын
Is it possible to do the same thing with flexbox?
@slayingthedragon
@slayingthedragon 11 сағат бұрын
Yes but it requires more divs in your HTML codepen.io/ramzibach-the-styleful/pen/QWPvYKq
@ericsanchez2581
@ericsanchez2581 10 күн бұрын
Why did the span 3 work vs 1/4?
@slayingthedragon
@slayingthedragon 10 күн бұрын
1/4 explicitly anchors your element into place, whereas span 3 doesn't. They're both similar but span is more implicit which is what you need to make auto-fit and subgrid work together.
@willb.r2055
@willb.r2055 6 күн бұрын
does anyone else likes to use flex on everything unless they absolutely need to use grid or is it just me ?
@jeremywinston1
@jeremywinston1 2 күн бұрын
i think everyone is like that.
@SogMosee
@SogMosee Күн бұрын
I use grid for everything except for buttons next to text, text next to text, or headers with an element on each side, then I use flex. Otherwise grid all the way baby. Maybe it's just the way our brains work differently...
@devxsadik
@devxsadik 10 күн бұрын
more sheez like this pls
@timtim9o5
@timtim9o5 14 күн бұрын
you didn't explain the 'span 3' directive
@slayingthedragon
@slayingthedragon 14 күн бұрын
It spans an element 3 rows, what is there to explain?
@sethhendrikz6949
@sethhendrikz6949 12 күн бұрын
Can someone please explain the 1/4?
@slayingthedragon
@slayingthedragon 12 күн бұрын
grid-row positions an item on yours rows. 1 / 4 positions an item starting from the first row line up to the fourth row line.
@sethhendrikz6949
@sethhendrikz6949 12 күн бұрын
@@slayingthedragon aha! So forgive me for extending the question but a 1/2 with four box elements, what would this do?
@slayingthedragon
@slayingthedragon 12 күн бұрын
@@sethhendrikz6949 It would display only one element in your box while leaving any other element out of sight. 1 / 2 only represents one row, and with our boxes having 3 elements inside of it, it needs to span 3 rows. If we have 3 rows than we have 4 row lines, which is why you use 1 / 4. This is something done automatically usually but subgrid doesn't position items on tracks implicitly, so you tell your boxes how many rows it must span. If you tell it to span 1 / 2 rows, than you're telling your boxes to occupy one row only and therefore only one element out of 3 can be displayed.
@sethhendrikz6949
@sethhendrikz6949 12 күн бұрын
@@slayingthedragon an absolute genius teacher, thank you dragon! Big ups and a confident sub 🙏
@Rio-by1eh
@Rio-by1eh 11 күн бұрын
Is a Grid a STACK…here ?
@edems131
@edems131 20 күн бұрын
@avrakadavra1552
@avrakadavra1552 9 күн бұрын
Is it just me? this doesn't work with 2 or more rows. Still, Thank you for this
@helluci6449
@helluci6449 10 күн бұрын
please start using dark mode
@rabbitcreative
@rabbitcreative 16 күн бұрын
The same effect can be achieved with tables. Just saying.
@tefkah
@tefkah 8 күн бұрын
who the hell wants to go back to tables man
@fitzv.9224
@fitzv.9224 19 күн бұрын
Been waiting for decades maybe? hahahah
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 885 М.
Easy and more consistent layouts using subgrid
8:01
Kevin Powell
Рет қаралды 42 М.
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 115 МЛН
НЕОБЫЧНЫЙ ЛЕДЕНЕЦ
00:49
Sveta Sollar
Рет қаралды 9 МЛН
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 23 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 23 МЛН
Learn CSS Grid - A 13 Minute Deep Dive
13:35
Slaying The Dragon
Рет қаралды 446 М.
Learn CSS BOX MODEL - With Real World Examples
17:45
Slaying The Dragon
Рет қаралды 79 М.
Learn CSS Flexbox in easy way
9:09
Nova Designs
Рет қаралды 2,4 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 562 М.
Design Better Than 99% of UI Designers
14:52
Tim Gabe
Рет қаралды 170 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 407 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 128 М.
I never thought of using CSS animations like this before!
10:28
Kevin Powell
Рет қаралды 64 М.
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 4,9 МЛН
Я Создал Новый Айфон!
0:59
FLV
Рет қаралды 4 МЛН
Добавления ключа в домофон ДомРу
0:18
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,4 МЛН
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 4,1 МЛН
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,4 МЛН