Flexibility & The Fold - new possibilities with CSS Grid

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 78

  • @dogoku
    @dogoku 5 лет назад +24

    I feel like I'm back at uni, attending a lecture by the best professor on campus. Inspiring stuff!
    Every video on this channel is quality material.

    • @DaGunFatha
      @DaGunFatha 3 года назад +1

      Weird. I had the same feeling.

  • @ofastora
    @ofastora 6 лет назад +15

    finding this channel is the highlight of my day, excelent content.

  • @SkyrimBeast
    @SkyrimBeast 6 лет назад +17

    As soon as I heard your thoughts about the proverbial "above the fold" concept, I raised my hands and said hallelujah! I get so tired of hearing that phrase because we don't in fact know where the "fold" is. Well, there is no fold like you said. Thank you so much for the video's and subscribed

    • @parisqs
      @parisqs 6 лет назад +3

      Can we say "about the fold" is equivalent to "first screen without scrolling"?

    • @christianaustria741
      @christianaustria741 5 лет назад

      @@parisqs i think this phrase explains it. Sometimes when you don't understand a concept completely, you tend to devise a mental phrase like that. You can also say "the initial visible viewport upon load"

  • @AmandeepSingh-hd8iq
    @AmandeepSingh-hd8iq 3 года назад

    This video deserves a million likes. Things will grow old, but this video will not.

  • @MarkusEicher70
    @MarkusEicher70 2 года назад

    Thank you, Jen. 🍀 This is a must see channel for all people learning CSS. I'm fascinated by the chance to have my pages being vertically responsive. Very cool.

  • @leepaulison4928
    @leepaulison4928 2 года назад

    With every video I advance my knowledge and see exactly where a given technology can help me in my current project. Thank you so much for this amazing content.

  • @dondreytaylor8001
    @dondreytaylor8001 6 лет назад

    Great explaination Jen, thank you. I always used to hate when people told me that they need everything above the fold without the user scrolling. In my head I'm always like "sure let's just fit the entire site in the viewport" lol

  • @davidschaer
    @davidschaer 2 года назад

    so good... this content is so good. i watched every single video on the channel - and every single one is pure gold.. kudos to jen simmons 👍

  • @247tomoekaoru
    @247tomoekaoru 4 года назад

    You are brilliant in the way you explain these complex informations. I have new love for CSS Grids because of you. Thank you so much.

  • @poneis88
    @poneis88 6 лет назад

    Jen explains everything in a very clear way. I am really enjoying this series of CSS Grid. Blew my mind, seriously. Keep the good work!

  • @codingwithcarla2525
    @codingwithcarla2525 6 лет назад

    I really appreciate the demonstration with dev tools. Its always helpful to see how its broken down!

  • @taranvohra6570
    @taranvohra6570 6 лет назад

    CSS Grid is just gold. I love it from day one of getting my hands dirty with it.

  • @thatryanp
    @thatryanp 4 года назад

    For the h1 row, it appears that max-content, min-content and auto keywords all have the same effect. Because the content is a single element having fixed height (no min-height/max-height range).
    Great vid

  • @smonkey001
    @smonkey001 6 лет назад

    Oh my I'm watching every single video you have post in a row! Love them all!

  • @dimitridehouck9506
    @dimitridehouck9506 6 лет назад +1

    Omg, just found your channel, you explain things really well. Now I understand CSS grid a little better. You got yourself a new subscriber.

  •  6 лет назад +5

    If I understand correctly, there is no difference between the `max-content` and `auto` values when applied to the row holding the heading element. There is only one item per row, and there are no `min-height` declarations, so `auto` is equivalent to `max-content`, and either can be used on the heading and navigation rows.

  • @emberchord
    @emberchord 6 лет назад +2

    I love how complimentary to Rachel Andrews grid by example videos your series is! It’s a very logical addition, loving it :D

    • @LayoutLand
      @LayoutLand  6 лет назад +3

      Yes, she and I have been presenting at a lot of conferences together, and over time we naturally started to lean on each other's work - she covers things from a more "geeky" or code-centric perspective, and I get at things from a more visual or design-centric angle. And together, we give a wide range of people all the parts needed to start to change how we do layouts on the web! There are also so many other amazing resources out there, especially on how to write the code for CSS Grid and Flexbox.

    • @emberchord
      @emberchord 6 лет назад

      absolutely! A Wes Bos Course launched recently. Though to be honest, I am very happy that I was one of the rather early adopters of CSS Grid :P

  • @milleniummoses
    @milleniummoses 6 лет назад

    Awesomeness!! YOu and Rachel Andrews are great compliments to each other. YOur explanation of things makes them more comprehensible. Coding is becoming more fun and efficient.

  • @mrbarletta
    @mrbarletta 4 года назад

    Awesome content! thanks Jen!

  • @ryanm3714
    @ryanm3714 6 лет назад +7

    Excellent information! As a follow-up, it may be worth talking about cross-browser compatibility (cough cough Internet Explorer) since that is also a big factor when using CSS grid. There is the use of "-ms" for some pseudo classes but not all are available.

    • @LayoutLand
      @LayoutLand  6 лет назад +8

      Look for a quick video on Internet Explorer next week. And I'll be doing a 7-part series on how to write CSS that works in all browsers, old and new, sometime soon. I agree, it's important.

  • @ungurunelu13
    @ungurunelu13 6 лет назад

    Vertical resizing based on a "tier" structure looks like the future. This will probably make headlines.Literally!

  • @FilipMarzec_
    @FilipMarzec_ 5 лет назад

    This is really interesting. I'm facing the "bottom edge" problem in my job. Going to check out the css grid definitely and see how can it help me

  • @keithpurtell1213
    @keithpurtell1213 6 лет назад

    Excellent presentation. Thank you, Jen.

  • @wdabrilvi
    @wdabrilvi 6 лет назад

    i was hating front-end until i knew your channel. Thanks

  • @gomo8651
    @gomo8651 5 лет назад

    Same like flex and flex1, 2 or 3....Havent did much of grid, but heard a lot...does it uses directions as well , like flex direction?

  • @edwassermann8368
    @edwassermann8368 Год назад

    so dope. Thanks Jen!

  • @ThierryReneSantosMatos
    @ThierryReneSantosMatos 6 лет назад

    you talking about css grid is awesome!

  • @SonGoku-pc7jl
    @SonGoku-pc7jl 2 года назад

    very thanks for all :)

  • @MaximusWilliams
    @MaximusWilliams 6 лет назад

    Very cool demonstration.

  • @Thesfrench5
    @Thesfrench5 5 лет назад

    Jeebus Cripes I needed this. Excellent video!

  • @kevinrutledge9602
    @kevinrutledge9602 6 лет назад

    I’m trying to follow some of this to build a parallax effect using grid. I’ve gotten pretty close, but I can never guarantee that my middle row(of three)is the same size as the image div fixed behind it. Any suggestions from you or the people who watch?

  • @TheElkster
    @TheElkster 5 лет назад

    hello - great video! is the codepen for this available anywhere? I have tried to replicate this great example - but I'm having difficulties and wanted to see what coding you have used. Thanks :)

  • @heitoralthmann
    @heitoralthmann 6 лет назад

    Jen, first of all, THANK YOU! Second, I still didn't get what's the difference of using auto VS max-content. Could you (or anyone who reads this) explain what changes from one to the other?

    • @LayoutLand
      @LayoutLand  6 лет назад +1

      I plan to make more videos about such things, yes. There’s much more to get into. For this example, in the block direction (rows), auto and max-content (and min-content) all do the same thing. It really didn’t matter which I used.

  • @loothor
    @loothor 6 лет назад

    ¡Excelente explicación, lo referente a "Fold"!

  • @eliudc.delgado9056
    @eliudc.delgado9056 6 лет назад

    This is really enlightening. Thank you.

  • @bartsimpson8330
    @bartsimpson8330 6 лет назад

    the way you talk and explain things wow !!! Professors should take notes on you.

    • @LayoutLand
      @LayoutLand  6 лет назад +1

      Oh thank you! You know, I was a professor for three years.

  • @eldyko
    @eldyko 5 лет назад

    These videos are really great and I'm really enjoying using Firefox dev tools. It would be nice if when you hover the values in your grid-templates properties it would highlight the affected content in the window.

    • @eldyko
      @eldyko 5 лет назад

      in firefox dev tools i mean

  • @LyndaHecht
    @LyndaHecht 5 лет назад

    Thank you for your videos! I get it! FINALLY! Being from 'above the fold' printing industry, and working with customers who are stuck HTML 4 land of tables ... here's hoping I can bring them and myself up to 2019 RWD.

  • @MaxWeir
    @MaxWeir 6 лет назад

    Is there any way to offset the image when viewing this in landscape on mobile? the image is hard up to the top of the viewport and if I wanted to add some top space, what would be the best approach? I tried adding padding to the image or margin top to the body, but they didn't quite work as expected.

  • @MrSam1804
    @MrSam1804 6 лет назад

    is it popssible to make 2 column grid when height hits some curtain point, or height of particular row hits its min height (like the row with image in this example) with picture in the one column and headline with nav in the another without media query?

    • @LayoutLand
      @LayoutLand  6 лет назад

      I’m not sure. These are the questions I love to ask and then try to figure out using code. Try it! You might discover a technique no one has used before. Write a blog post no matter what you find, and share it with us all. It’s early days. What _is_ possible? No one knows the answers yet.

  • @bonitatanaka3259
    @bonitatanaka3259 5 лет назад

    you are amazing.....thank you for making sense !!!!! EXCELLENT.

  • @JasonBerk
    @JasonBerk 3 года назад

    could you put a link in the description?????

  • @juicetheballer
    @juicetheballer 6 лет назад

    Thank you for the video. Did you declare each grid-row for each element, and then did you declare the img height to be 100%?

    • @LayoutLand
      @LayoutLand  6 лет назад +2

      Yes, the img height is set to 100%, with no width specified. I didn't write any code to define the column (because I only needed one column). Instead, yes, I defined several rows using `grid-template-rows: 3fr minmax(100px, 350px) max-content auto 1fr;`. Which means the image is in a row defined to be `minmax(100px, 350px)`, so the image is never shorter than 100px, and never taller than 350px.
      You can check it out for yourself at labs.jensimmons.com/2017/01-008C.html

  • @kevinkonrad93
    @kevinkonrad93 6 лет назад

    Love your videos and explanations. I've learning CSS Grid for a little while now and it gets me excited about the present and future of web layouts. In this case, what's the difference between max-content and auto?

  • @micgol
    @micgol 6 лет назад +3

    Great video! It'd be great to hear about differences between min-content, max-content & auto as column or row sizes, that part is a little confusing to me.

    • @LayoutLand
      @LayoutLand  6 лет назад

      Thanks. I have more videos coming about all this, but in the meanwhile, Rachel Andrew just posted a video about content sizing keywords and what each does: gridbyexample.com/video/content-sizing/

    •  6 лет назад

      In this case, there is no difference between `max-content` and `auto` (the heading and navigation rows), I think. See my other comment.

  • @wendyhoile7659
    @wendyhoile7659 6 лет назад

    You are a wonderful teacher. The only thing that I found unaesthetic was when the viewport was narrowed and the nav bar ran into two rows. If the two rows were centered and of equal number it would have looked better. Is that a possibility?

    • @philetaerus
      @philetaerus 6 лет назад

      +Wendy Hoile, I was just playing around with Jen's example in the inspector. If you add a rule to the ".C ul" selector in her CSS,
      justify-content: center;
      then when each nav item starts to wrap, all the ones on the second line are centered. It's still not quite the effect you are looking for, because there's not an even distribution of items between the rows, but at least it's less jarring.
      I think this is a limitation of flexbox. I tried also playing around with the flex property on the individual items (flex-grow/flex-shrink/flex-basis), but I couldn't get much better results.
      My guess is you would need another grid just for the nav--I think that's what people mean when they say browsers need to implement "sub-grids".
      I'm not as strong in CSS as I'd like to be, which is why I'm really liking this channel.

  • @ProfGilRodrigues
    @ProfGilRodrigues 5 лет назад

    Excelent content. Like!

  • @zaboogoosfraba6699
    @zaboogoosfraba6699 6 лет назад

    Thank you for this.

  • @KEEM_DANSITA
    @KEEM_DANSITA 3 года назад

    you're a visionary

  • @bahaajasim3793
    @bahaajasim3793 3 года назад

    Amazing!

  • @borsaniasushant1
    @borsaniasushant1 6 лет назад +1

    Thank you. Where can we find this code example?

    • @BastianAlbers
      @BastianAlbers 6 лет назад

      labs.jensimmons.com/2017/01-008.html

  • @shaun_rambaran
    @shaun_rambaran 6 лет назад

    Jen Simmons: Thinking outside the box about inside the box.

  • @TomasHradckyComposer
    @TomasHradckyComposer 3 года назад

    Wow and thank you.

  • @composernotes
    @composernotes Год назад

    brilliant!

  • @aqua123670
    @aqua123670 5 лет назад

    thank you ! very cool

  • @felipechalreo
    @felipechalreo 6 лет назад

    Amazing stuff!

  • @Lomaxient
    @Lomaxient 6 лет назад

    Great - Thank you!

  • @hamidallah
    @hamidallah 4 года назад

    thanks

  • @lucianozanella2988
    @lucianozanella2988 3 года назад

    esta mujer la tiene muy clara

  • @thaitepy7930
    @thaitepy7930 6 лет назад +2

    This is gold !!!!!

  • @noelfabro8352
    @noelfabro8352 6 лет назад +1

    Wow wow wow

  • @mbavio
    @mbavio 3 года назад

    Literally: 🤯

  • @Kuwandi
    @Kuwandi 6 лет назад

    web is a curse for people with ADD... it messes up your retention...unlike reflective medium... linear movement is so much better and allows one to "backtrack" your path...jumping form one thing to another in too many directions becomes uproductiive after a while...wish there was a "choice" instituted in the mode of browsing***