Learn CSS Subgrid in 14 minutes
HTML-код
- Опубликовано: 3 май 2024
- 🚨🚨🚨 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. - Наука
does anyone else likes to use flex on everything unless they absolutely need to use grid or is it just me ?
i think everyone is like that.
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...
Flex first here.
i also 😂😂😂
I use flex , because I don't know nothing in grid 😅😂
The comeback of a legend ..
Thanks.
I didn’t appreciate subgrid until I had to work with named grids that had sticky headers
I was rewatching all your previous posts and got so excited when I saw your new upload!
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.
you're just too good at writing css, you never failed to impress me
This is exactly what I’ve been looking for! Great content sir
Thank you, for the helpful information! Keep making these great videos!
He’s coming back on 100k. Congrats
I just watched your other videos for the 10th time. Amazing how you just uploaded one again! Waiting for the javascript course!
🎉Wow, I finally saw your new work after such a long time. Very good tutorial~❤
Wonderful... This tutorial has five stars to me, it's concise, well explained, illustrative, and leaves nothing unchecked... Applause
amazing tutorial as always thank you!!
Thank you! Your explanation are great!🎉
great to have you bacK!
What an amazing tutorial. Thank you!
Thanks bro I always enjoyed ur tutorials
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.
Awesome Video with a great explanation!!
Wonderful explanation buddy!! Keep up the good work.❤️
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 !!
I needed that so much🎉🎉
whoa this feature is incredible... great explanation, too.
For this partcular layout you can use flexbox to push the images at the edge of their containers, you just have to use flex-direction:column; and margin-top:auto;
very nice work. thank you!
Your videos help me alot thank you
finally, you've kept us waiting Ramzi
wow, the legend is back
Great explanation thanks❤
Truly a greeat lesson. Fantastic. Very uunderstandable aand vitally important thank you.
This channel definitely slayed!
Very useful. Thank you.
thanks for the clear explanation
Thank you man please upload more video about CSS Like building actual project from start to end
After a long time got ur video... 👍👍
Nice to see you again ✌
Dragon is back 🔥
Very useful!! 💪
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...
What a great day when your video comes
Thnx bro also expceting more new videos and your new courses also stay heathly.:)
man it was really helpful for me becuase i always faced prblems here
awesome video gained something new
You are one of the best CSS teacher on yt
The best tutorials for learning css
ayooooo the king is back ⭐⭐
This was perfect 👌
The master has returned 😤
Worth subscribing you.
thats great. thanks dear
Very Good! 👏👏👏
Great video
the king is back 😭🙏🏾🙏🏾
U are back
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.
Impressive 🤎
Welcome back ❤
Love your videos ❤❤❤❤
I am only 12
SO SIMPLE!!! OMG
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.
The GOD off CSS
epic.. didn't know of this .. now to undo my horrible hacks
I think this is possible with flex. You just wrap this boxex with flex item, make boxes stretch vertically. And then align images to the bottom. But this subgrid thing looks pretty cool.
Geez u make it look so easy. And great explaination! I guess media queries is really not needed. Question tho. How do i move an image that is on the right side of the viewport to go above the text on the left side when viewing in smaller screens? So normal size/big screen Text and Image will be next to one another. Please help
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))`?
Great Video!
You replied 1 min after video uploaded. Watch it first
I can't believe it's taken so many decades to get this far for creating layouts using CSS.
wow .. thank you
:))))
best explanation
another super clean tutorial, I could not have explained it better! Glad to see you back my guy!
Classic Ramzi recording at 1am
perfection
Please tell about how to use masonry library with sidebar on a webapp.
Я не знаю кто ты, но ты объяснил все за 14 минут лучше, чем наши "разработчики" объясняют это все за час. Спасибо!
13:31 with style css like that, how to handle view if only one grid item?
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? ;(
useful sh*t - thanks!
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 :)
Finally legend got his password correct
😂
come back with React 🔥🔥 please
HEEYYY welcome back
teach us mern stack please
Hi, what does the "span 3" means? Thanks.
I was just thinking of doing margin-bottom: auto
and what about making each item display: flex and setting flex-grow: 1 on each paragraph?
Yea that's what I personally do, subgrid though is great if you're using grid
Hes back??
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.
I don't, however in about a month my CSS course will be uploaded to my RUclips channel, it'll be free for everyone
We missed you so much bro. Please prepare better next time. Slaying a dragon shouldn't take this long.
I agree
I am confused, why not 1/3
Please make videos on javascript
Is it possible to do the same thing with flexbox?
Yes but it requires more divs in your HTML codepen.io/ramzibach-the-styleful/pen/QWPvYKq
Slaying Thank you !!! Now you talking really slow... I can flow alone nice
Why did the span 3 work vs 1/4?
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.
more sheez like this pls
you didn't explain the 'span 3' directive
It spans an element 3 rows, what is there to explain?
Is a Grid a STACK…here ?
Can someone please explain the 1/4?
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.
@@slayingthedragon aha! So forgive me for extending the question but a 1/2 with four box elements, what would this do?
@@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.
@@slayingthedragon an absolute genius teacher, thank you dragon! Big ups and a confident sub 🙏
Is it just me? this doesn't work with 2 or more rows. Still, Thank you for this
please start using dark mode
Why would this be returned to the design team looking nothing like the prototype. It boggles my mind when the programmers can't just match the design 1 to 1 before sending it back
This is sarcasm right? The amount of absolutely overcomplicated designs I had the disgust of seeing is waaay too high. Maybe, just maybe if designers thought about how their design would be implemented instead of thinking they are the next Michelangelo, they could keep the design simple enough so it can be implemented both quickly and correctly.
The same effect can be achieved with tables. Just saying.
who the hell wants to go back to tables man