I Had No Idea This Scroll Bar CSS Property Existed

🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#Shorts

Пікірлер: 69

  • @superjkmax88
    @superjkmax88 Жыл бұрын

    The last sentence sums it up for all css fixes

  • @lewisjones284

    @lewisjones284

    Жыл бұрын

    And it’s always mentioned at the very last second 😂😂

  • @And1997Ruz

    @And1997Ruz

    8 ай бұрын

    And it's always Safari The new IE

  • @haruikichi
    @haruikichi Жыл бұрын

    When you are feeling happy, remember there is always browser support

  • @jonathanjohnson2785
    @jonathanjohnson2785 Жыл бұрын

    Browser support. Probably the developer's biggest issue to fix😢

  • @lord_kh4n

    @lord_kh4n

    Жыл бұрын

    It's web developer vs browser developer 😂

  • @jonathanjohnson2785

    @jonathanjohnson2785

    Жыл бұрын

    @@lord_kh4n 😅😅😅 Yeah eish. If I didn't laugh I'd cry. That's how bad it can get sometimes

  • @imfastboi

    @imfastboi

    Жыл бұрын

    ​@@lord_kh4nand also vs people not updating their browsers

  • @SirCamWA
    @SirCamWA Жыл бұрын

    I really wish I knew about this like last year. I made work arounds using JS, that took hours, to replicate this effect

  • @beinyourguard
    @beinyourguard11 ай бұрын

    good to see that css is becoming even more powerful

  • @rahulxcr
    @rahulxcr Жыл бұрын

    This is much needed feature.

  • @user-es2vr3cv1v
    @user-es2vr3cv1v Жыл бұрын

    seems to be a rare property. Never heard of it

  • @dinhnghia5947
    @dinhnghia594716 күн бұрын

    Hi Kyle please do more these learning CSS videos like this , thanks you are awesome 🎉

  • @babchenkonikolay911
    @babchenkonikolay911 Жыл бұрын

    Safari has left the chat

  • @vini6
    @vini6 Жыл бұрын

    Am I the only one who can't see the right side? It's literaly overflowing on my screen, no joke intended

  • @BusariOpeyemi

    @BusariOpeyemi

    Жыл бұрын

    exactly what I came to the comment section to check. I have the same issue

  • @StiekemeHenk

    @StiekemeHenk

    Жыл бұрын

    Yep, KZread auto-scales the video for your device, I've left a comment and got a reply. Must've put an overflow hidden on it 😂

  • @BenRogersWPG
    @BenRogersWPG Жыл бұрын

    Watching this on short and I missed all the edge content. I can only see the middle bit of the video. Lol can you fix KZread's padding?!

  • @lthakur92411
    @lthakur92411 Жыл бұрын

    Thankyou brother , really informative video

  • @shapelessed
    @shapelessed Жыл бұрын

    The browser support might not be there but it's a noncrucial prop and is still useful whenever it works.

  • @EdgyVidyaGeneral
    @EdgyVidyaGeneral Жыл бұрын

    Theres a hacky workaround for this, but this is a great feature. Hope its fully supported soon

  • @viktorlernt6063

    @viktorlernt6063

    7 ай бұрын

    which?

  • @jshstuff
    @jshstuff9 ай бұрын

    I was excited about this to solve the issue where putting overflow:hidden on the body causes the page to shift, for example when you open a modal, but this is a bad solution for that issue because then there are always 15 pixels of dead space, which is a no-no for basically all designs. for example you won't be able to do a carousel that goes all the way to the edge of the screen. :(

  • @soyunaplanta7457
    @soyunaplanta74577 ай бұрын

    i love you, thanks man

  • @toutch2050
    @toutch20502 ай бұрын

    thanks bro

  • @iamghezali
    @iamghezali Жыл бұрын

    as long as it is well supported by chrome and chromium based browsers, it's not that much of an issue, Safari & Firefox don't have that by default gutter !

  • @LinuxLoader1287
    @LinuxLoader1287 Жыл бұрын

    Thank you 👍

  • @braoha123
    @braoha123 Жыл бұрын

    How does this work on macOS compared to windows? The scroll bars have different widths.

  • @StiekemeHenk

    @StiekemeHenk

    Жыл бұрын

    I imagine the browser handles that. The same way DVH/W is handled by the browser.

  • @dipanjanghosal1662

    @dipanjanghosal1662

    Жыл бұрын

    It doesn't matter. If you're on Windows or any other os, all scroll bars will be consistent for that particular os. The issue this video is tackling is, how to stop the jump/shift of the content when a scroll bar appears. disappears in a container.

  • @DerTim
    @DerTim Жыл бұрын

    I don't see a practical use case where I would use these, besides when you do start pixel pushing (is it called like that in english? I mean when you perfectly adjust your pixels)

  • @RodrigoDAgostino

    @RodrigoDAgostino

    Жыл бұрын

    A very good use case would be a modal window with dynamic content in it, like a form that grows bigger than the screen when error messages are displayed :)

  • @nyadpics
    @nyadpics Жыл бұрын

    You are awesome!

  • @thefamousdjx
    @thefamousdjx Жыл бұрын

    just another rabbit hole to worry about. ship first

  • @fabriperoconalgomasytodojunto
    @fabriperoconalgomasytodojunto10 ай бұрын

    time to center all my divs with that

  • @nahueljo
    @nahueljo Жыл бұрын

    What happens if you use scrollbar-gutter with overflow:auto? does it apply twice?

  • @notvern

    @notvern

    Жыл бұрын

    no

  • @accforgame8563
    @accforgame8563 Жыл бұрын

    Wow nice content

  • @mohammadali3900
    @mohammadali39007 ай бұрын

    Very nice

  • @yahtzee1990
    @yahtzee1990 Жыл бұрын

    wow great!

  • @mastra90
    @mastra90 Жыл бұрын

    Can you put the scroll bar on top of the page so it doesn't need to shift across? Sort of like a z-index equivalent for the scroll bar

  • @SimonBuchanNz

    @SimonBuchanNz

    Жыл бұрын

    That's overlay scrollbars. They were (somewhat brokenly) implemented in Chrome at least and were being proposed for stabilization, but Apple blocked it saying, basically "it's a user preference", and instead this got added.

  • @sweethomes674
    @sweethomes674 Жыл бұрын

    Excellent

  • @yoskokleng3658
    @yoskokleng36588 ай бұрын

    i watch all your video. seems u are strong in js. Can u make course about 3D library like three.js ..?

  • @mcdaddy1334
    @mcdaddy13349 ай бұрын

    Very cool

  • @kuyabae9008
    @kuyabae900811 ай бұрын

    How can you still intact the full website in this 1080x1920 resolution for yt shorts?

  • @_izro_
    @_izro_5 ай бұрын

    -webkit-scrollbar{ width: 0px; } - this will hide your scrollbar

  • @BB_Harunya
    @BB_Harunya Жыл бұрын

    actually huge, guessing scrollbar sizes never again

  • @egoreast
    @egoreast Жыл бұрын

    Классная фича. Как раз очень нужно для проекта, а я и не знал как это сделать))

  • @1DonFF
    @1DonFF7 ай бұрын

    Not working for me could you provide the code so that I can copy & paste to see if it’s a me error or not?

  • @royzelig
    @royzelig9 ай бұрын

    Is it there a solution that works with chrome, if I don't have the latest version?

  • @StiekemeHenk
    @StiekemeHenk Жыл бұрын

    Cool, but I can't see what happens when you add it in a mobile formfactor. You should've split the bottom of the video and animated it to show the change.

  • @WebDevSimplified

    @WebDevSimplified

    Жыл бұрын

    It looks like KZread is taking my video (which is 9x16 aspect ratio) and zooming it in if your phone is greater than a 9x16 aspect ratio instead of keeping the full video and adding black bars to the top/bottom. Unfortunately, there isn't much I can do about this (other than try to push the content more central in the future) as I was unaware KZread did this and really wish they didn't.

  • @StiekemeHenk

    @StiekemeHenk

    Жыл бұрын

    @@WebDevSimplified ah dang. Makes sense. Isn't 20:9/21:9 the most common ratio for phones nowadays? Most phones ditched the physical buttons and also removed the forehead and replaced it with a holepunch or notch. Doesn't help that I use swipe gestures so I have the full screen for display, no buttons at the bottom.

  • @NeoAres1
    @NeoAres15 ай бұрын

    GOD!!!!

  • @TheDenisTopG
    @TheDenisTopG Жыл бұрын

    Is there an equivalent for the horizontal scrollbar?

  • @blackpurple9163

    @blackpurple9163

    Жыл бұрын

    It'll work with all alignment it seems

  • @iistw22788
    @iistw22788 Жыл бұрын

    How about “overflow: overlay;”?

  • @cool_boyua

    @cool_boyua

    Жыл бұрын

    It’s an alias to overflow: auto

  • @iistw22788

    @iistw22788

    Жыл бұрын

    @@cool_boyua But if the overflow is overlay, it won’t take out space.

  • @Rider0fBuffalo
    @Rider0fBuffalo Жыл бұрын

    Lol always safari ..

  • @ChamplooMusashi
    @ChamplooMusashi Жыл бұрын

    It makes me so mad all the stupid BS we have to deal with that should have just been a feature 10 years ago and the fact that this crap has to be opted into instead of treated as a default behavior, because people already fixed the stupid BS and will refuse to remove their stupid fixes

  • @t6hp

    @t6hp

    Жыл бұрын

    True, I watched as a colleague spent almost a full day, just getting this right with JS, so it works correctly, responsively, on all browsers. Felt so mundane and stupid.

  • @kang-dohsik4693
    @kang-dohsik4693 Жыл бұрын

    Am the 1,5 k like i feel so proud for no reason 😭

  • @thedelanyo
    @thedelanyo Жыл бұрын

    I'll rather love removing it entirely 😅

  • @danielharten4890
    @danielharten4890 Жыл бұрын

    Can’t see the right side example 👎

  • @bradforddrake8633
    @bradforddrake863310 ай бұрын

    Totally worthless information. No info on how to fix scrollbat not anchoring.

  • @im7254
    @im7254 Жыл бұрын

    chrome + firefox are the only browsers worth checking. the rest of them simply do not matter

  • @RodrigoDAgostino

    @RodrigoDAgostino

    Жыл бұрын

    Sandly people in the US are big fans of Apple crap, and plenty of them just use the default browser, meaning Safari :S