Тёмный

Using Flexbox + CSS Grid Together: Easy Gallery Layout 

Layout Land
Подписаться 78 тыс.
Просмотров 111 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 111   
@nadhifikbarwibowo2837
@nadhifikbarwibowo2837 6 лет назад
I love the way she effectively explains things. Keep it up!
@LayoutLand
@LayoutLand 6 лет назад
Thank you!
@PaulSebastianM
@PaulSebastianM 5 лет назад
She reminds me of some of my most favourite teachers in school.
@zonairraja7575
@zonairraja7575 5 лет назад
@@PaulSebastianM so true
@hippiestafarii
@hippiestafarii 2 года назад
Here to ...Nice to learn that esay from somebody who knows :-)
@rimberse3405
@rimberse3405 4 года назад
She explains everything so well. First time I see a person, who explains complex things in a simple manner, wow!
@roymath
@roymath 6 лет назад
I hadn't kept up with the changes in css land and was going crazy trying to make sense of it all. Finally - someone who can talk through the bigger picture and yet get into meaty details. thanks!
@mohdismailmohdnasir7545
@mohdismailmohdnasir7545 4 года назад
She has a very pleasant voice, apart from the way she explains the methods while chipping in all the tips and tricks. Thanks, Jen! I've learned a lot from this video.
@darentsimon
@darentsimon 3 года назад
your manner makes this subject very easy to understand and follow. Thank you
@coffeeinjection2572
@coffeeinjection2572 6 лет назад
I have looked at so many complicated and wordy tutorials and still not completely understood how to do this and you make this stuff so easy to understand. I should have subscribed to your channel sooner. Thank you.
@edwassermann8368
@edwassermann8368 Год назад
Can't tell you how much I love your content. I'm learning so much. Thanks very much!
@NikHYTWP
@NikHYTWP 2 года назад
I'm really stressed right now because I'm falling behind some deadlines, a website being just a part of my university project that I need to make, and I normally suck at HTML/CSS but you're just so calming and explain everything so well in each video that it really helps calm me down, thanks for making these!
@bluebadgersec
@bluebadgersec 5 лет назад
Jen is great all day, every day, but from 5:12 on is gold
@jeevanprakash4815
@jeevanprakash4815 5 лет назад
Lots of learning in single video. Hope, I would have found this channel 1 year ago. Thank you, Jen Simmons.
@VideosofIrishFarmingLife
@VideosofIrishFarmingLife 5 лет назад
"grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));" Brillant!!
@jy_chen
@jy_chen 5 лет назад
That testing strategy is something I would never come up with. Mess things up to test if something's working. Brilliant.
@jakubrpawlowski
@jakubrpawlowski 6 лет назад
Thank you again Jen! In grid I've been nesting grids instead of flexboxes because I feel like it's so much more readable especially with the dev tools support, but now I can totally see how flexbox still has the advantage for working in older browsers so writing fallback before @support becomes trivial like in your example!
@MarkusEicher70
@MarkusEicher70 2 года назад
Thank you very much for sharing this with us. That was very clear and helpful. I like the concept of using grid as wrapper for flex-box. Need to try this out. Have a good time and be well.
@joel9909
@joel9909 6 лет назад
Jen Simmons is an Omen!!! You teach with so much ease. Thank you so much
@logiconabstractions6596
@logiconabstractions6596 4 года назад
I have to admit, I've always been a little bit of a front-end snob and I've pushed really learning more than just the basics to build a dummy mock-up in html/css for so long. That being said, explained this way, it actually makes you want to try it. This looks like actual code to me. My vision of html/css was a huge spaghetti mess I wouldn't want to touch with a 6 foot pole. I guess things have changed! But probably too that while this vision wasn't entirely, it also wasn't a complete picture. Anyway thanks for the support on my journey to becoming a half-decent front end guy, and that much closer to a fullstack dev....
@christhompson8384
@christhompson8384 3 года назад
Very clearly explained, thanks. Although setting max-width to 10000px is a hack. Setting it to "unset" or "initial" would have been more elegant.
@sadaffarsa6058
@sadaffarsa6058 2 года назад
Wow! She explained it very well!
@Finicky9
@Finicky9 6 лет назад
Less media queries in the solution, the happier I am :B
@abubakarsabir7364
@abubakarsabir7364 4 года назад
Finally , I got the answer , I was looking for the past 4 5 hours searching here and there Because I wanted to place three images in vertical fashion and I ended up using float and inline-block. I'm rookie but, I guess I got the answer.
@shabzkhan1470
@shabzkhan1470 4 года назад
How you deliver is interesting, thanks a ton Jen!
@keithpurtell1213
@keithpurtell1213 6 лет назад
Best video CSS tutorials I have found.
@mauricioerazososa9969
@mauricioerazososa9969 2 года назад
Wow! thanks so much for making this video. I understood the function of these elements much better.
@nkisikiyumba
@nkisikiyumba 2 года назад
You are the best!!! I understood perfectly
@ziskador
@ziskador 5 лет назад
They way she explains things . She's so smart :3
@vague_1255
@vague_1255 2 года назад
Amazing instructor and great content! Thank you!
@learningtocodeafterforty
@learningtocodeafterforty Год назад
I found your CSS grid card layout so important to my learning that I would like to ask your permission to add a link on my website to the CodePen and RU-vid lesson. Many thanks Dan
@LayoutLand
@LayoutLand 11 месяцев назад
Oh of course! I’d love for you to link to this video.
@learningtocodeafterforty
@learningtocodeafterforty 11 месяцев назад
Thanks so much. Your card layout is so awesome.
@briandelaney6354
@briandelaney6354 3 года назад
Brilliant again....thanks 😁
@davidramirez9727
@davidramirez9727 Год назад
Thank you so much, i appreaciate this information
@BloodyClash
@BloodyClash 5 лет назад
:) indeed...you REALLY know what you are talking about. thank you
@Manas-co8wl
@Manas-co8wl 9 месяцев назад
Thank you it was very useful
@eulier1
@eulier1 6 лет назад
This has been enlightening videos, the way you explain the content, and also the passion you show for every tip you give... i can only say that is love for the Design, Css, Art and everything involves in such areas you apply to your videos. Is there are a way to put multiple flexbox ovelapping?. Such like z-index but for Flexbox content?.
@MaximusWilliams
@MaximusWilliams 6 лет назад
Another great video, Jen. Thank you very much :)
@CharlyBGood11
@CharlyBGood11 3 года назад
Thank you so much! So clear!
@JuanNadal
@JuanNadal 5 лет назад
very good examples!
@matoelgud
@matoelgud 4 года назад
I have flex containers in a main grid, but i have the flex containers set to row, because I want an image, and a header with a paragraph, to be positioned next to each other - opposed to on top of each other in a column as in your example here. I then want the flex items to stack on top of each other like the way you, when the the space gets to tight. What happens then is that my picture shrinks and and my paragraph lines become really short instead of stacking ontop of each other and utlizing the width that way
@tim_arterbury
@tim_arterbury 6 лет назад
Wow, it’s amazing how little code that takes!! 👏👏
@mohamedyoussef8835
@mohamedyoussef8835 2 года назад
Awesome Tutorial ++++++++++++++++ Thank you
@sheheryarqazi1006
@sheheryarqazi1006 Год назад
thank you so much
@ricardoe.galvez5024
@ricardoe.galvez5024 6 лет назад
great demo! thanks!
@danielsokil9529
@danielsokil9529 6 лет назад
Can you turn off certain features in browser to test? For example, turn off grid and or flexbox to simulate a older browser environment.
@krishnateja7830
@krishnateja7830 5 лет назад
Wow! she explained the basics of the whole thing in just 3 videos, thanks @JenSimmons.
@estebanalmont3711
@estebanalmont3711 4 года назад
This is gold "when you start putting widths on flexbox you are not getting the advantages of flexbox"
@basilio100
@basilio100 5 лет назад
I didn't get why this can be done with flex. If instead of grid you use flex, last item in the second row (like on video sec 0:29) will not take all second row. try it. {display: flex; flex-wrap: wrap;}
@christianaustria741
@christianaustria741 5 лет назад
but i don't think flexbox has something like flex-gap property for spacing. Although, you can achieve it using "space-between" for either justify-content or align-items. I think the main reason for choosing grid over flexbox in this case is grid seems intiutive for layout placements and has native support for adding gaps.
@ChicClique
@ChicClique 4 года назад
The big problem with this layout is the image size. I'm using image address to source the image and as expected the sizes of each image change and the card is broken due to bigger image size. How could I make the image to keep its size so that it will not break the card. I have tried by using css properties: width & height to 220px; But i'm not satisfied with the result. What do you suggest.. !
@johnmathew8543
@johnmathew8543 3 года назад
how do i align divs in a row using flex inside a child grid box? i tried display:flex , i can change the width of the divs inside the grid box but i am not able to change the height without using pixels
@masdaug
@masdaug 6 лет назад
wow, nice.. thanks so much for sharing
@ГуляКабанова
@ГуляКабанова 5 лет назад
Great Job
@SonGoku-pc7jl
@SonGoku-pc7jl 2 года назад
hello, thanks for all. today not is needed the add line @suport for grid no?
@redwolfsoftware3630
@redwolfsoftware3630 Год назад
Out of curiousity, what does grid do differently than old school css: display:inline-block; margin: 1rem; min-width:300px? It appears to give the same result. Or does the grid layout maintain the same size of each item regardless of the inner content?
@mikl2345
@mikl2345 6 лет назад
Hi Jen, do you have any suggestions on whether a navbar should be inside or outside of a main page grid? say i want something on the navbar on desktop, but on mobile to move that element somewhere else on the page, in the main grid. if i use a flex in the top row of a grid, i can't re-place only one element inside the flex as it's not an actual grid item, but a grandchild. hence, should I just duplicate that code & switch display:none on the one I don't need? An alternative seems to be to just subsume the navbar into the grid completely, which would allow complete re-placement, but, in going to an extreme like that, I have a feeling I might end up with a potentially rather fine grained grid where grid-template-areas becomes quite bulkly. perhaps an experiment would be in order. thank you for these fabulous tutorial videos - the best I've ever seen on css!
@augmentos
@augmentos 6 лет назад
Would love to see a multi-column feed style layout in an SPA because DOM doesnt style. Eg a main vertical feed and if user swipes over the are the in another vertical scroll store comprised of other li's.
@sameenrehman5021
@sameenrehman5021 Год назад
is there any updated version of this video?? @LayoutLand
@Evildragonfirez
@Evildragonfirez 6 лет назад
Awesome video. When do you think we will be able to use grid without worrying about support?
@anniewang99
@anniewang99 3 года назад
It is amazing. I am trying to add a header and integrate it with this, and it seems a bit more complicated or do you have any suggestions? Thanks.
@BillyLoweBeauty
@BillyLoweBeauty 4 года назад
when you say placing headlines first makes things more 'accessible' is that indicative of helping seo perhaps?
@Lichkuroro
@Lichkuroro 6 лет назад
im sorry but how does the max-width: 10000px works here...? why not the traditional way, width: 100%? i'm confused...
@LayoutLand
@LayoutLand 6 лет назад
I could have reset things to max-width: none; That's what I wanted, actually. To simple not have a max-width set anymore. Instead (for whatever reason that day) I used 10,000px - which basically is so giant it wouldn't do anything.
@osvaldonetotomaz8657
@osvaldonetotomaz8657 5 лет назад
She is simply great xD
@joefairplay2837
@joefairplay2837 3 года назад
GOAT!
@nikotlichnik
@nikotlichnik 6 лет назад
Thank you for video! Why there is smaller gap than others between first and second grid items on 3:58?
@JuanXPrats
@JuanXPrats 6 лет назад
I was wondering the same thing when I noticed that...
@AndrewMowe
@AndrewMowe 6 лет назад
I was wondering too. It seems to be due to the image width. When I apply max-width: 100% to the article > img things align correctly. If you add a larger explicit width to the image, it breaks even more.
@SNMSoodan
@SNMSoodan 5 лет назад
When only one element is present the box takes 100% width which looks awkward on large screens. Is there any solution to it.
@pradeepvig9880
@pradeepvig9880 4 года назад
Are you using a mouse-pen/pen-mouse sort of?
@eduardoauditore5414
@eduardoauditore5414 3 года назад
How's possible that in 2020 user's browsers don't support grid? What is this Latin America , Africa ??
@LA-MJ
@LA-MJ 6 лет назад
max-width: initial?
@HansLemuet
@HansLemuet 6 лет назад
or max-width: none?
@facundocorradini
@facundocorradini 6 лет назад
That would definitely be a much better reset.
@バニヤロサン
@バニヤロサン 6 лет назад
@バニヤロサン
@バニヤロサン 6 лет назад
😊sometimes💕
@vanvothe4817
@vanvothe4817 3 года назад
what is editor her use?
@ishbindra
@ishbindra 6 лет назад
I am sorry for pointing out, but the volume is too low.
@butterchoco4538
@butterchoco4538 5 лет назад
omg I have just found this channel... thanks youtube recommend this to me. AND Mam, I wanna ask a question... Can we animate grid actually ? for instance, grid 1 column with 100% >> become grid 2 column with 50% each ???
@LayoutLand
@LayoutLand 5 лет назад
You cannot animate one Grid track (row or column) into becoming two. But you can animate the size of a track. Start with two columns where one of them is zero width. Then animate it to be bigger than zero. I think that will get you what you want.
@butterchoco4538
@butterchoco4538 5 лет назад
@@LayoutLand ahh I see... thanks for replying
@oshumnyi
@oshumnyi 6 лет назад
Yeah, why not max-width: initial?
@TBolt1
@TBolt1 6 лет назад
1:38 Which text editor is that? Nevermind. It’s Coda.
@LayoutLand
@LayoutLand 6 лет назад
Yup. I like Coda. www.panic.com/coda. I've been using it for a long time.
@viking185
@viking185 6 лет назад
this does not work in IE, looks like you need the -ms- prefix and IE doesn't support the support media query. unless my info is out of date or someone has a work around
@LayoutLand
@LayoutLand 6 лет назад
I made a whole video about IE and CSS Grid, where I explain how to use Grid in IE10 & 11: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7msERxu7ivg.html
@arifbasri4950
@arifbasri4950 6 лет назад
Wow, gggggrid?? Haha...never thought that, thank you anyway
@quicktastic
@quicktastic 4 года назад
I do wonder why your margin is set to zero and yet there is a margin on both sides.
@cypryradu
@cypryradu 6 лет назад
How about: @supports not (display: grid) { ... } instead of gggggrid? :)
@cypryradu
@cypryradu 6 лет назад
I know "@supports not ()" is not recommended in production code, since not all browsers can read feature queries but just to test what happens when the feature is not available, should work fine.
@LayoutLand
@LayoutLand 6 лет назад
Yeah that should work just fine!
@weizhangJustin
@weizhangJustin 5 лет назад
就是说啊,好多浏览器不支持grid
@ChayonShaah
@ChayonShaah 6 лет назад
can i use positioning property inside of grid or flex ?
@Psyop666
@Psyop666 5 лет назад
You don't need to. There are other properties available to help position elements inside the grid. And yes you can use the position property.
@RamizAzhar
@RamizAzhar 4 года назад
a programmer who used stylus pen..
@im.empimp
@im.empimp 6 лет назад
(A) I really love your consideration of older browsers and accessibility! (B) I was actually a bit disappointed with this video. It felt more like it should have been titled, "Using flexbox as a _fallback_ to grid in a _progressive_ design". Based on the title, I was expecting you to cover designs that actually benefit from the simultaneous use of flexbox and grid (e.g. jakearchibald.com/2014/dont-use-flexbox-for-page-layout/).
@LayoutLand
@LayoutLand 6 лет назад
Did you watch the video? I didn't use Flexbox as a fallback for Grid. I used Grid to do the layout of the cards themselves. And I used a simple "mobile", narrow, flow-based layout as the fallback for Grid. Then I used Flexbox to layout the content inside the cards. This _is_ a demo of a design that benefits from the simultaneous use of Flexbox and Grid. That is exactly what it is. The article Jake wrote in 2014 is completely out of date. He's comparing performance using browsers from 2014 - there've been over 20 releases each of Firefox and Chrome since then. Firefox has an entirely new CSS Parsing & Rendering engine, so any performance comparisons need to be redone using 2018 browsers. Plus, Jake is debating Flexbox vs Grid while looking into ancient syntax for Grid that was long ago replaced. It was a interesting article four years ago, but is irrelevant today. Also, his article does not cover how to use Flexbox and Grid at the same time. He's considering using Flexbox instead of Grid (which was still three years in the future when he wrote that article). I'm not sure what your point is. That I should be more like Jake?
@vivianeb90
@vivianeb90 3 года назад
Wow, you explained this so well! I am so glad I found you! New subscriber here!
@Dextergec413
@Dextergec413 4 года назад
This is beyond my level of knowledge but I'm starting to see how it works. Appreciate these videos, Going to sub
@DanieleManca1983
@DanieleManca1983 4 года назад
Great video Jen, I am having some issue, I am using a similar snippet of code within a work project, but the grid items do not breakdown to another row when I shrink the browser's window... Project section on: internal.showsuite.com/
@stefanc4060
@stefanc4060 4 года назад
Macintosh 8500? Nice for making websites:-)
@danielpan5128
@danielpan5128 6 лет назад
This is a greate example. But I think the grid-template-columns should use auto-fill instead of auto-fit. In this case, if there are only one or two grid item, the item would not streach to fill the whole 1 fr.
@jamesyin6961
@jamesyin6961 6 лет назад
If my part of target browsers don't support grid. I just ignore 'grid' feature, use flex instead. I hate compatible code.
@LayoutLand
@LayoutLand 6 лет назад
You should watch the 7-part Resilient CSS series I made.
@cazepeda
@cazepeda 4 года назад
Thank you Jen! Great demo!
@MrBidalos
@MrBidalos 6 лет назад
Give more plz.
@ShillBullshit007
@ShillBullshit007 5 лет назад
Nooooo one supports gggggggrid.....;D I bet internet explorer does!!! Merry Christmas Jen....you're a fucking star mate ;o)
Далее
Innovative & Practical Graphic Design with CSS Grid
14:20
Basics of CSS Grid: The Big Picture
15:25
Просмотров 189 тыс.
Свожу все свои тату (abricoss_a_tyt)
00:35
Как он понял?
00:13
Просмотров 129 тыс.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Просмотров 3,7 млн
Flexbox vs. CSS Grid: Which Should You Use and When?
17:16
CSS Grid vs Flexbox
11:43
Просмотров 247 тыс.
Obliterate Boxiness with CSS Shapes
8:38
Просмотров 47 тыс.
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,6 млн
Incredibly Easy Layouts with CSS Grid
9:02
Просмотров 139 тыс.
Build a Classic Layout FAST in CSS Grid
8:30
Просмотров 52 тыс.
Two simple layouts that work better with Grid
14:05
Просмотров 61 тыс.
Why I use grid over flexbox for this common layout
7:32
9 Biggest Mistakes with CSS Grid
14:21
Просмотров 163 тыс.