3 underused CSS Grid features

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 54

  • @roryhendrickson
    @roryhendrickson 4 місяці тому +8

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

  • @ModMySelf18
    @ModMySelf18 3 місяці тому +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)

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

    Awesome tips and trick. loved all of them

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

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

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

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

  • @robertsundblad7061
    @robertsundblad7061 4 місяці тому +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.

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

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

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

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

  • @Ragnar_Oock
    @Ragnar_Oock 4 місяці тому +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.

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

    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

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

    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.

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

    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?

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

    Awesome! This was really useful.

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

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

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

    Great tips. Thanks.

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

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

  • @DocGenius42
    @DocGenius42 4 місяці тому +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.

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

    The absolute positioned items in grid areas is bonkers.

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

    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.

  • @clevermissfox
    @clevermissfox 5 місяців тому +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 ✨️

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

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

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

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

  • @DocuFlow
    @DocuFlow 7 днів тому

    Quality stuff!

  • @sovereignlivingsoul
    @sovereignlivingsoul 29 днів тому

    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

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

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

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

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

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

    What vscode theme you use? thanks

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

    can you kindly provide the codepen link for this ?

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

    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  4 місяці тому +1

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

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

    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.

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

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

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

      isn't it transitioning not animation?

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

    Grid doesn't need to Flex!

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

    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 4 місяці тому

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

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

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

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

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

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

    expand the topic Custom HTML Tags
    Custom HTML Tags

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

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

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

    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 ❤

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

    🎉

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

    Grid itself is underused

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

    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.

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

    thank you bro from Fiji

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

    one dark pro?

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

    🤯

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

    hello css boss

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

    godamn I said goddamn!

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

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