3 underused CSS Grid features

Поділитися
Вставка
  • Опубліковано 21 січ 2025

КОМЕНТАРІ • 55

  • @roryhendrickson
    @roryhendrickson 5 місяців тому +9

    I had no idea you could use absolute positioning along with grid, great tip!

  • @kaustavroy6542
    @kaustavroy6542 5 місяців тому +9

    Awesome tips and trick. loved all of them

  • @KOBE42__
    @KOBE42__ 5 місяців тому +9

    Awesome video as always Kevin! Just checking, so do absolutely positioned items in a grid become grid-items themselves?

    • @KevinPowell
      @KevinPowell  5 місяців тому +3

      Great question! If the grid container is positioned, I guess so, yes, but I'd have to look at spec

  • @d18517
    @d18517 5 місяців тому +2

    Great video, thanks. Really useful - I love the grid videos. And the new theme is good too!

  • @ModMySelf18
    @ModMySelf18 4 місяці тому +2

    Just to let you know to the animated fr thing at 13:28, but it is possible to make a transition between fr. I "animate" my accordions like this. Open accordion has a 1fr child (the content) and closed 0fr, with overflow hidden it works like a charm :) (probably you already know, but wanted to let all the other people know that)

  • @robertsundblad7061
    @robertsundblad7061 5 місяців тому +1

    I need all of these Grid-videos tog get my brain about learning them.
    And yes, I like the new theme! Was thinking I wanted it for my own IDE.

  • @MrBlaq
    @MrBlaq 5 місяців тому

    Another awesome advanced tutorial! Keep'em coming and Thank you!

  • @PicSta
    @PicSta 5 місяців тому

    Great video as always. Really love your videos and watch them as they come out. I like the new theme, which one is it? Or custom?

  • @ROL4ND-CSS
    @ROL4ND-CSS 5 місяців тому

    This again an awesome video with the true powers of css grid. Thanks Kevin for these clear and good examples! 😊

  • @Ragnar_Oock
    @Ragnar_Oock 5 місяців тому +17

    this video would have been a great way of showcasing the `grid-template` shorthand. it makes the whole "defining the grid" a lot more visual and you don't need the weird `grid-template-area: unset` because the shorthand overrides it for you.

    • @KevinPowell
      @KevinPowell  5 місяців тому +5

      One of these days 😂

  • @ricorobinson
    @ricorobinson 5 місяців тому

    Great tips, being able to play with layouts like this is fantastic compared to the css layout mud wrestling we had to do 10 years ago

  • @DocGenius42
    @DocGenius42 5 місяців тому +1

    Since you mentioned it at the end: transitioning from 0fr to 1fr doesn't seem to work anymore in FireFox (it did before). I have to change 0fr to 0 in order for my Accordion to function properly which ofcourse means that it will jump between those values now.
    Haven't tested if the latest release fixed that, but I doubt it.

  • @quark2012
    @quark2012 5 місяців тому

    Awesome! This was really useful.

  • @sovereignlivingsoul
    @sovereignlivingsoul 5 місяців тому

    great video, grid is amazing, i am trying to incorporate grid lines more in my coding practices, difficult to find the right combination sometimes if the page gets too busy, or if trying to do in such a way as to avoid @media or @container type coding.

  • @clevermissfox
    @clevermissfox 6 місяців тому +2

    Transitioning w the fr unit- i know ive transitioned rows from 0fr to 1fr but im curious what the exact constraints are if 50px to 1fr didnt work correctly. Or maybe mine just looks like it works and it wouldnt be able to do a reverse infunite animation 🤔
    Love the grid series! Wonder if subgrid appreciation month is coming again ✨️

  • @DocuFlow
    @DocuFlow Місяць тому

    Quality stuff!

  • @tgd-613
    @tgd-613 5 місяців тому

    Great tips. Thanks.

  • @sovereignlivingsoul
    @sovereignlivingsoul 2 місяці тому

    as for the row movement in the animation, perhaps putting the animation container in a container and give the parent a transparent background, shouldn't affect anything outside of the parent

  • @Sofia-ts6gy
    @Sofia-ts6gy 3 місяці тому

    Position absolute still allowing you to align the item according to grid lines literally made me think “god i wish i could do that in figma autolayout” lol.

  • @bobmarteal
    @bobmarteal 5 місяців тому

    The absolute positioned items in grid areas is bonkers.

  • @gknt7234
    @gknt7234 5 місяців тому

    The implementation of CSS can initially appear perplexing and counterintuitive, seeming more like a clever workaround than a straightforward feature.

  • @pixiedev
    @pixiedev 5 місяців тому

    That's awesome I didn't know that 😄 we can do this 💪.

  • @RickBeacham
    @RickBeacham 5 місяців тому

    How would we animate the SVG car to move behind the transparent image?

  • @bopuc
    @bopuc 5 місяців тому

    You consistently make 1999 web designer me cry. (Thank you!)

  • @backup_hdd
    @backup_hdd 5 місяців тому

    wait, i'm confused. did you even need the position absolute for the car icon? like, wouldn't setting the grid-column/-row alone have the same effect?

    • @backup_hdd
      @backup_hdd 5 місяців тому

      except for top/left/… of course, but i think you could've used margin for that, right?

  • @nabilpatel970
    @nabilpatel970 4 місяці тому

    Great video 🔥
    Just want to mention that the driver looks like Tom Holland 😂

  • @tsdineshjai8565
    @tsdineshjai8565 5 місяців тому

    can you kindly provide the codepen link for this ?

  • @justdude2599
    @justdude2599 5 місяців тому

    What vscode theme you use? thanks

  • @lemapp
    @lemapp 5 місяців тому

    Could you use, "CSS -- overflow: hidden;" to make the image float up and down and not subject lower layout items to unnecessary movement?

    • @KevinPowell
      @KevinPowell  5 місяців тому +1

      Not with how I'm animating this, but if I had only animated the image, then yes

  • @jasonatcuriousmedia
    @jasonatcuriousmedia 5 місяців тому

    Absolute positioning of the grid item in conjunction with grid-columns / grid-rows only works if the grid container is position relative (or absolute or fixed). Unfortunately, this nuance appears to have been skipped in the video entirely.

  • @kopilkaiser8991
    @kopilkaiser8991 5 місяців тому +1

    I am really constantly improving my knowledge in CSS Grid. It is vast and diverse.

  • @MrCC-hx8xr
    @MrCC-hx8xr Місяць тому

    Demo pls? Kevin?

  • @vilijanac
    @vilijanac 5 місяців тому

    wow, I learned a lot new stuff about CSS.
    Thanks for showing.

  • @DesignCodeToken
    @DesignCodeToken 5 місяців тому

    I send email to you for BeyondCSS course, but get no reply, how can I get in touch with you. Sorry to comment here, but really don’t know how I can get it touch with you.

  • @detore
    @detore 5 місяців тому +8

    you say don't animate your fr's, but your 0 to auto video you link to... is animating fr's???

    • @geHuC
      @geHuC 5 місяців тому +1

      isn't it transitioning not animation?

  • @SandroWalach
    @SandroWalach 5 місяців тому

    Grid doesn't need to Flex!

  • @vfxcraftacademy
    @vfxcraftacademy 5 місяців тому

    Hii Kevin
    I join company as intern and I learn bootstrap 5 because we work on that and make website full responsive on every single website ...but I stuck and can't figure out how I can write smooth code with responsive using media query ....so can you make video on that .....
    Please reply my question...
    Love from india ❤

  • @_zer09_
    @_zer09_ 5 місяців тому

    one dark pro?

  • @OCEMTechZone
    @OCEMTechZone 5 місяців тому +1

    🎉

  • @toshitsingh7270
    @toshitsingh7270 5 місяців тому

    Grid itself is underused

  • @lomavatatechfiji3237
    @lomavatatechfiji3237 5 місяців тому

    thank you bro from Fiji

  • @BrunoNeureiter
    @BrunoNeureiter 5 місяців тому +1

    I didn't really understand or remember anything but it's a nice introduction

  • @ukyo6195
    @ukyo6195 5 місяців тому

    🤯

  • @WERWOLION
    @WERWOLION 5 місяців тому

    expand the topic Custom HTML Tags
    Custom HTML Tags

  • @sujonshekhbd
    @sujonshekhbd 5 місяців тому

    hello css boss

  • @ALCATRAAAZZ
    @ALCATRAAAZZ 5 місяців тому

    godamn I said goddamn!

  • @anion155
    @anion155 5 місяців тому

    “Another tip is z-index” no you don’t…