Incredibly Easy Layouts with CSS Grid

  Рет қаралды 140,033

Layout Land

Layout Land

Күн бұрын

Пікірлер: 152
@praxisdev1884
@praxisdev1884 6 жыл бұрын
I can’t imagine anyone explaining these concepts any better. She’s a rockstar!
@Andrey-il8rh
@Andrey-il8rh 6 жыл бұрын
Thanks a lot for a detailed explanation and for a link that explains the difference between auto-fit and auto-fill. I think the hardest part for most seasoned CSS developer is to change mindset about how things should be layed out. Part of me is screaming: That can't be that easy, there should be so trickery involved, but a second half is trying to emrace the magic. So thank you a lot for supporting my second part :)
@awaiszaki14
@awaiszaki14 5 жыл бұрын
this is so much easier after she explains all the complicated CSS in a very simple way
@royandescartes
@royandescartes Жыл бұрын
where have you been all my css life? THANK YOU!
@chimadivine7715
@chimadivine7715 3 жыл бұрын
Ever since I found out layout land, I've loved her. She demonstrates so well with her fingers and those demonstrations look exactly how they are in real life. So easy-to-understand explanations. Thank you Jenny.
@arkmuntasser
@arkmuntasser 7 жыл бұрын
Awesome explainer! Can't wait to see what you have in store for this channel. Thank you, Jen.
@carlakroll2877
@carlakroll2877 7 жыл бұрын
CSS grid is the bees knees! Really like the good explanation of explicit and implicit.
@rednine7851
@rednine7851 6 жыл бұрын
This is the best front end explanation channel I have come across...Thank you for the content!!!!
@dr.earnest.ujaama
@dr.earnest.ujaama 4 жыл бұрын
Totally awesome! There are those who know and know they know, and those who don't know and know not that they don't know. Jen, you are definitely in the first category. Super awesome explanation and demonstration. Wow!
@chronicv100
@chronicv100 6 жыл бұрын
This is in incredible!!!! This is leaps and bounds beyond any other CSS explanations/tutorials on youtube. Thank you.
@josejimenez7502
@josejimenez7502 6 жыл бұрын
I love the way you convey your message. Your easy to understand and speak in a manner that makes sense i feel like your speaking directly to me great job thanks. I just subscribed to your channel
@acnorrisuk
@acnorrisuk 7 жыл бұрын
This is such a flexible and satisfying solution for an extremely common use-case. I for one welcome our new grid overlords..
@jakubrpawlowski
@jakubrpawlowski 6 жыл бұрын
OMG NO MEDIA QUERRIES!!!! JEN YOU ARE AMAZING!!!! THANK YOU SOOOO MUUUUCHHHH!!!!
@armanmohammadi4284
@armanmohammadi4284 2 жыл бұрын
Hello, I am from Iran and I am really grateful for your great help, there are very few Persian sources in Iran and I am very excited to thank you.
@chrispratt3047
@chrispratt3047 Жыл бұрын
I've been learning web development for a few months now, specifically html and css, and my biggest problem since the beginning has been figuring out the overall layout of the page. I've watched video after video on flexbox and grid, and although they've taught me some useful things, it wasn't enough to be able to just go ahead and do it myself. Kinda like learning to drive with or without an instructor.....you're fine with the instructor, but not without. Your videos have helped me manage that drive on my own without the instructor! Excellent tutorials, very well explained. Thank you for doing these, you have restored my faith in myself! Now I'm going to make myself a cuppa and watch some more :)
@HerrSiering
@HerrSiering 6 жыл бұрын
Used this in a demo this week - it's so amazing how easy it is with CSS Grid to show a card layout for all viewports without any media query. I guess my colleagues were slightly annoyed in the end for each "CSS Grid is AWESOME!" mention :D
@decaf4me2
@decaf4me2 6 жыл бұрын
Wow! Blown away by grid and your easy-to-understand explanations. THANK YOU!
@CH-le2hz
@CH-le2hz 5 жыл бұрын
I haven't found anybody else who explains it as well as you do. Thank you, Jen!
@jiehanaldicho3710
@jiehanaldicho3710 6 жыл бұрын
Thank you! It took a while to wrap my head around grid, and your concise explanation helps a lot.
@Lucas-ve8bz
@Lucas-ve8bz 2 жыл бұрын
Your teaching style is amazing! great job!!
@juanmoralesvideo
@juanmoralesvideo 5 жыл бұрын
Super clear and complete explanation! Thank you Jen. By the way, in my opinion, the very "core" grid thigs only take 4 lines in your example - so elegant!
@OFWGKTAxGOBLIN
@OFWGKTAxGOBLIN 6 жыл бұрын
Best channel I've seen on layouts so far
@LukeDorny
@LukeDorny Жыл бұрын
Revisiting these excellent videos, Jen. Please update: The `auto-fit` shown at @4:21 doesn't have a comma, but it should, just like the code view @3:30 & @5:05 Thank you!
@manjoujanzen9375
@manjoujanzen9375 Жыл бұрын
Thank you, Jen. Very good and clearly explained content.
@deepsinha6024
@deepsinha6024 3 жыл бұрын
Just love you explain this in a simple way. Thank you for this
@TheUtuber999
@TheUtuber999 5 жыл бұрын
Jen, thank you so much for this brief, but informative video. I'm excited to get started on a family photo album using CSS Grid!
@HassanBraim
@HassanBraim 4 жыл бұрын
Very impressive!! You make it easy the way you explain it. Thank you!
@omerjan3118
@omerjan3118 6 жыл бұрын
clear voice and talking and awesome explainer ,thanks
@ValLaxoxo
@ValLaxoxo 6 жыл бұрын
Wow, great video! Awesome explaination and visualisation. I really look forward to more
@thomasgauperaa4659
@thomasgauperaa4659 6 жыл бұрын
You are a great teacher, thank you for posting these videos bout CSS Grid!
@LayoutLand
@LayoutLand 6 жыл бұрын
Thank you for your kind words.
@sallaklamhayyen9876
@sallaklamhayyen9876 6 жыл бұрын
Thanks Jen Simmons for this great Explanation , we want more Tut bout Css and Layout
@rowanans
@rowanans 6 жыл бұрын
Thank you Jen! Finally no media queries!
@LayoutLand
@LayoutLand 6 жыл бұрын
We'll still use media queries, for sure. We just don't need them as much. Not for layouts like this one.
@digigoliath
@digigoliath 5 жыл бұрын
Just found your channel & have subscribed. Great tutorial. Still in disbelief that it could be so easy & powerful. I am a CSS newbie who just got started.
@kyrie4728
@kyrie4728 6 жыл бұрын
yeah i think i fall in love with grid already. Great vids
@busyrand
@busyrand 6 жыл бұрын
Happy to find this channel and content. It was strongly recommended. I enjoyed the explanations to various methods and clearing Floats. I stayed away from learning the details of using grid, but you explained the syntax beautifully. Subscribed...
@MarkusEicher70
@MarkusEicher70 2 жыл бұрын
Hi Jen. Many thanks for this post! I like how you explain the things. O course I have subscribed. And now up to the next video. Well done! 👍
@cindykee3719
@cindykee3719 5 жыл бұрын
Great explanation of Grid's flexibility using implicit layouts!
@jonathanstanis8627
@jonathanstanis8627 7 жыл бұрын
Just used this to do CSS Grid on a page for the first time. Love it!
@GyasiLinje
@GyasiLinje 3 жыл бұрын
This is incredibly helpful
@cgtechcommunity
@cgtechcommunity 7 жыл бұрын
Great explanation. Looking forward to more videos.
@ungurunelu13
@ungurunelu13 6 жыл бұрын
Very well presented and extremely useful. I was working out best solutions for an image gallery and this looks like a perfect foundation. Thank you!
@thaitepy7930
@thaitepy7930 7 жыл бұрын
Thanks for this awesome video. You make it simple to remember how that special 1 line of code works :D
@carstenberggreen7509
@carstenberggreen7509 2 жыл бұрын
Brilliant and easy to understand. I would recommend you to keep the example code ON screen while you have your face too. It's sometimes hard to only hear your explanation if you cannot watch the code at the same time. But I am a fan now. Tons of videos to watch. Been away from Front-End development since 2014... dang.. back then I wrote my own grid systems, besides using Grid960 and I have also used bootstrapper. But .. those are dead now. That's for sure.
@indekxmobile4970
@indekxmobile4970 5 жыл бұрын
Amazing job. You've touched every piece of what matters.
@smitty1753
@smitty1753 Жыл бұрын
Awesome content. Please continue to share.
@somrajdutta8366
@somrajdutta8366 2 жыл бұрын
Outstanding Communicator, Love you man!
@ionutmargarint7238
@ionutmargarint7238 6 жыл бұрын
Amazing way of explaining. Thank you!
@jeremywagner8088
@jeremywagner8088 7 жыл бұрын
Good stuff, as always. This is really good at describing how to code common layouts in very lines of CSS.
@cmnweb
@cmnweb 6 жыл бұрын
i'm starting to love grid..greetings from Mexico.
@RussellBallestrini
@RussellBallestrini 5 жыл бұрын
I love this, thank you. I implemented this just now and it works perfect. Grid is so awesome for somebody who started HTML with table layouts.
@DivineZeal
@DivineZeal 6 жыл бұрын
Bravo! CSS grid made simple, thank you.
@amijabd
@amijabd 4 жыл бұрын
This was really good. Thank you, Jen.
@jihyunsam143
@jihyunsam143 6 жыл бұрын
Thank you for making my life easier!
@ChandrakantAhuja
@ChandrakantAhuja 2 жыл бұрын
nicely explaination ... i was struggling from many days.
@pnjegosh
@pnjegosh 4 жыл бұрын
Excellent explanation, good job!
@amarcanth
@amarcanth 5 жыл бұрын
That's wonderful! Thank you so much, Jen!
@stratboy2
@stratboy2 2 жыл бұрын
This series is great.
@Azaditube
@Azaditube 6 жыл бұрын
Awesome. I never get any explanation about this. Thank you very much
@richardshaules3981
@richardshaules3981 5 жыл бұрын
This is great- so simple, and very well explained. Thank you :)
@rosannevandeweerdt8751
@rosannevandeweerdt8751 6 жыл бұрын
This is really good!! I'm having some trouble styling my as a grid, as it also has elements with inside that are clickable and have a title appear on hover (kind of the typical portfolio look). Do you have any useful links to look at for this case?
@smoothbeak
@smoothbeak 6 жыл бұрын
Very cool Jen, had no idea about this channel, I was wondering if you'd ever be back with "The Web Ahead"!
@IanSebryk
@IanSebryk 6 жыл бұрын
small tip: if you're explalning a snippet, keep a copy of it overlayed when you switch to your talking head. easier to cognitivly connect what you're saying to what we're seeing.
@Kuwandi
@Kuwandi 6 жыл бұрын
The best **, the difference from people who just do a tut vs a reall explanation, why and how ****
@donnchadhmcginley3153
@donnchadhmcginley3153 5 жыл бұрын
@@jkovert wow you're a fucking idiot
@damislav
@damislav 4 жыл бұрын
@@jkovert get help.
@jkovert
@jkovert 4 жыл бұрын
@@damislav Jen coined the phrase "Fail Whale," her sole contribution to the field.
@MossawirAhmed
@MossawirAhmed 6 жыл бұрын
Thank you so much. Css grid from now.
@MaximusWilliams
@MaximusWilliams 6 жыл бұрын
Thank you very much for sharing your knowledge and expertise 👏🏼
@stevenmuncy491
@stevenmuncy491 6 жыл бұрын
How would you do this filling by column (not row) when n-items is unknown?
@ernestoroberts169
@ernestoroberts169 4 жыл бұрын
Hi I'm new to front-end stuff, this is the bootstrap default behaviour too when comes to this , right?
@eldyko
@eldyko 5 жыл бұрын
Is there a way to have a minmax for your number of columns? I only want a max of 4 columns(desktop) and a min of two columns(mobile). It seems like I still need a media query to specify I only want 2 columns on mobile but 4 columns on desktop. Right now I have: grid-template-columns: repeat(4, minmax(160px, 1fr)); then I use: grid-template-columns: repeat(2, minmax(160px, 1fr)); for mobile(using media queries) but it seems odd to repeat this whole line and use a media query when I just want to change the one value(number of columns). Any help is appreciated. Thanks
@realmumptastic
@realmumptastic 7 жыл бұрын
🔥This is awesome! Thank you Jen!
@LayoutLand
@LayoutLand 7 жыл бұрын
You are welcome!
@Freebird1122
@Freebird1122 5 жыл бұрын
Awesome Jen, thank you.
@YoavRheims
@YoavRheims 6 жыл бұрын
Question: what about high resolution screen (4K)? Just define a max-width on the to prevent unlimited columns?
@LayoutLand
@LayoutLand 6 жыл бұрын
You can always put a max-width on your container to keep it from growing too wide, sure. Or think about any of the possibilities you might want to have happen, and then use other CSS - another Grid, something in Flexbox, something with widths or flow or floats, or whatever - to accomplish that affect.
@codeinswahili9505
@codeinswahili9505 5 жыл бұрын
Can this be used to design a whole page layout or is it just for a picture gallery?
@AbiFranklin
@AbiFranklin 6 жыл бұрын
Is there a way to keep the number of columns equal across the rows? Say, if I had 4 images that fit in one row at the current screen width. When I narrowed the screen width, it throws the fourth image down into a new row. Is there a way to have 2 images to drop down instead so that it stays more balanced?
@nikismile123
@nikismile123 6 жыл бұрын
I currently have a problem with the "grid-gap". When applied It brakes the layout even used as very small % into fr-only grid 100vh, 100vw. Could you please give me an idea why it happens? Thank you.
@t_rm2119
@t_rm2119 2 жыл бұрын
Queen of css
@haccuk
@haccuk 6 жыл бұрын
Thank you very much for this video. Can you tell me if you can make this a clickable image to open a lightbox in modal window as I would with normal html , js and css?
@LayoutLand
@LayoutLand 6 жыл бұрын
You know, I don't know. I bet it depends heavily on how the lightbox is coded. You could build a demo and see what happens. Can you get it to work? Then share it with the world. Write a blog post!
@gabrielsteiger5465
@gabrielsteiger5465 5 жыл бұрын
Question, what about browsers that dont support CSS grid? Going to have to write the code for them anyway, right? (I'm new to all this)
@timmellis5038
@timmellis5038 6 жыл бұрын
If there were two images both 200px in width and you open the browser to 590px, do the images stretch bigger than 200px, so they would both be 295px?
@rektangul7210
@rektangul7210 6 жыл бұрын
I love your videos.
@TimAldridge
@TimAldridge 6 жыл бұрын
Thanks, Jen, very cool!
@antonbrams_io
@antonbrams_io 6 жыл бұрын
how to handle "grid-column: span 2" if the grid is going to decide to set only one column at auto-fill? Can't find any information on web. Can i at least access the current number of columns with javascript to reduce the span?
@donnchadhmcginley3153
@donnchadhmcginley3153 5 жыл бұрын
Really well explained, thanks
@erickdavid4257
@erickdavid4257 6 жыл бұрын
3:30 if even the Mozilla staff resets the box-sizing property and sets it to border-box, why isn't border-box the default for box-sizing in Firefox?
@LayoutLand
@LayoutLand 6 жыл бұрын
None of the web browsers can change the box-Sizing default to border-box, because if we did, we would break millions of existing websites that have code which assumes `box-sizing:content-box;` Until a time machine is invented, we can’t change it. You have to set it on all your websites going forward, one by one. Which I recommend you do. By the way, Mozilla would never simply make a decision to do something like this in our own. No browser does anymore. Ideas like this are brought to the CSS Working Group, and all the browser makers decide as a group what to do. There’s an official decision, a resolution. And every browse maker agrees to follow that decision. That’s how we make sure all the browsers work the same. Everyone has agreed to follow CSSWG Specifications. It wasn’t always this way. In the past, browsers did just do whatever they wanted. And it was very very painful. Ask people who remember making websites for IE 4 & Netscape 4. It was horrible. Having an official standard that everyone follows makes for a much better system. So this decision is not one made by Mozilla alone. It’s a decision from the CSS Working Group.
@digitalvenue6007
@digitalvenue6007 3 жыл бұрын
There are number of issues remain - for *_different height_* items, there are "white spaces" since rows get defined by the tallest item in the fore-row, the preceding row. Masonry.JS may still be the only option if you want to place items in a *row* that are not of same size and dont want to see ugly white spaces. This, after 3 years of this video being published.
@rafi_45
@rafi_45 4 жыл бұрын
Thank you for the explanation
@danielsokil9529
@danielsokil9529 6 жыл бұрын
Looking forward to more videos.
@mohamedyoussef8835
@mohamedyoussef8835 3 жыл бұрын
Awesome tutorials ++++++++ thank you 🙂🙂
@treenopie
@treenopie 6 жыл бұрын
When the browser decides how many items go in a row, is there a way using JavaScript to determine how many items are on each resulting row? I wish to fill the inevitable part empty row at the end.
@LayoutLand
@LayoutLand 6 жыл бұрын
Well, if you plan to stretch out the content to fill up the empty space, then you might want to be using Flexbox instead of Grid. Or if you want to lazy-load more content to get an 'even number' then, yes, that would be for JS. I don't know exactly how to do it, but there should be a way. You could try, create a simple example, and write up a blog post. I bet a lot of people have such a question.
@treenopie
@treenopie 6 жыл бұрын
Yay, I found a way: `rowlength = Math.floor(document.body.clientWidth / document.querySelectorAll('article')[1].clientWidth)`
@treenopie
@treenopie 6 жыл бұрын
You inspired me! I posted it in Q&A format on stackoverflow: stackoverflow.com/questions/49888032/css-grid-layout-count-how-many-elements-in-dynamic-row
@aniltoronto
@aniltoronto 6 жыл бұрын
I am wondering if we can create navbar using css grid. Any one out there. I have sort of did that, but as a novice in web development, I am not sure if css grid is a good way to create nav bar. Thanks
@LayoutLand
@LayoutLand 6 жыл бұрын
You definitely can layout a nav bar using CSS Grid. You might want to use Flexbox, however. Nav bars are the kind of thing Flexbox was born to do. It depends, however, on the kind of end result you are looking for.
@aniltoronto
@aniltoronto 6 жыл бұрын
Thank you Jen. That really helps. And, thank you for these really wonderful videos. I have learned a lot from them. Please keep them coming.
@superchunkylover23
@superchunkylover23 6 жыл бұрын
Thank you Jen!
@zieteniere7500
@zieteniere7500 4 жыл бұрын
Great teacher, thankyou
@benrigaud
@benrigaud 6 жыл бұрын
Great video, thank you!
@sudhirrana3240
@sudhirrana3240 3 жыл бұрын
Top Class! Fantastic!
@Dahon5
@Dahon5 6 жыл бұрын
Are all the picture she's using the same size in pixels (ht and width)? Does the code automatically make each image the same size in the box? Let's say she has a 3 ht x 3 width picture and a 5 ht x 4 inch picture. Will they all fit in the same square and look the same?
@LayoutLand
@LayoutLand 6 жыл бұрын
In this particular case, there would be space underneath some of the images, and the row would be the height of the tallest image in that row.
@christopherkarpowicz1123
@christopherkarpowicz1123 6 жыл бұрын
Gr8 explanation! Thx.
@HikikomoriDev
@HikikomoriDev 6 жыл бұрын
So how does this work at runtime... Does the browser have some sort of engine running the logic behind the grid... seems quite abstracted. HTML doesn't do any logic, so how does this live?
@LayoutLand
@LayoutLand 6 жыл бұрын
The layout is calculated by the rendering engine as it figures out how to paint the page. It's CSS that creates the layout (not HTML). And if you want to understand how CSS and the browser's process works, check this out: hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/
@amberweinberg6237
@amberweinberg6237 7 жыл бұрын
Go Jen!
@humanyoda
@humanyoda 6 жыл бұрын
Is this supported by currently used browsers well enough to justify starting using it?
@LayoutLand
@LayoutLand 6 жыл бұрын
Yes. Here's a video on how to think about browsers that don't support Grid: kzbin.info/www/bejne/bZ7WdoWuqpycrMk
@edwassermann8368
@edwassermann8368 Жыл бұрын
This is soo dope!
@MrPlaiedes
@MrPlaiedes 6 жыл бұрын
You have a very pleasant voice. Nice video. Grids are great!
Responsive Mondrian - a demo of CSS Grid
13:27
Layout Land
Рет қаралды 66 М.
9 Biggest Mistakes with CSS Grid
14:21
Layout Land
Рет қаралды 164 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
10 modern layouts in 1 line of CSS
21:39
Chrome for Developers
Рет қаралды 1,1 МЛН
Basics of CSS Grid: The Big Picture
15:25
Layout Land
Рет қаралды 190 М.
Flexbox vs. CSS Grid - Which is Better?
4:18
Layout Land
Рет қаралды 303 М.
Learn CSS Grid - A 13 Minute Deep Dive
13:35
Slaying The Dragon
Рет қаралды 641 М.
Using Flexbox + CSS Grid Together: Easy Gallery Layout
8:52
Layout Land
Рет қаралды 112 М.
You can do that with margins?
14:40
Kevin Powell
Рет қаралды 188 М.
Obliterate Boxiness with CSS Shapes
8:38
Layout Land
Рет қаралды 47 М.
CSS Grid like you are Jan Tschichold
13:51
Layout Land
Рет қаралды 62 М.
CSS Grid Changes EVERYTHING - Amazing Presentation
32:06
Coding Tech
Рет қаралды 1,1 МЛН
Flexbox Tutorial (CSS): Real Layout Examples
28:46
LearnWebCode
Рет қаралды 1 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН