Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
scrollbars

20 Articles
{
,

}
Image
Direct link to the article Quick Hit #66
CSS scrollbars

Quick Hit #66

@heyo53 asks on Bluesky: Is it okay to style or hide scrollbars?

…

Image
Daniel Schwarz on Dec 5, 2025 Updated on Dec 4, 2025
Image
Direct link to the article Classy and Cool Custom CSS Scrollbars: A Showcase
scrollbars

Classy and Cool Custom CSS Scrollbars: A Showcase

In this article we will be diving into the world of scrollbars. I know, it doesn’t sound too glamorous, but trust me, a well-designed page goes hand-in-hand with a matching scrollbar. The old-fashioned chrome scrollbar just doesn’t fit in as …

Image
Saleh Mubashar on Nov 14, 2022
Image
Direct link to the article Strut Your Stuff With a Custom Scrollbar
scrollbars

Strut Your Stuff With a Custom Scrollbar

The first time I had my breath taken away by a humble scrollbar was on this very site. When CSS-Tricks v17 rolled out with its FAT CHONKY BOI, my jaw dropped.…

Image
Shawn Wang on Dec 24, 2021
Image
Direct link to the article Scrollbars on Hover
hover scrollbars

Scrollbars on Hover

First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a big place and I like tricks, so I’m going to cover the …

Image
Chris Coyier on Jan 20, 2021 Updated on Jan 26, 2021
Image
Direct link to the article That’s Just How I Scroll
scrollbars scrolling ux

That’s Just How I Scroll

How do you know a page (or any element on that page) scrolls? Well, if it has a scrollbar, that’s a pretty good indication. You might still have to scrapple with your client about “the fold” or whatever, but I …

Image
Chris Coyier on Aug 14, 2020
Image
Direct link to the article Hide Scrollbars During an Animation
animation scrollbars specificity

Hide Scrollbars During an Animation

CSS still can’t animate to auto dimensions.

.dropdown {
  transition: 0.2s;
  height: 0;
}
.dropdown.open {
  /* the height will change, but it won't animate. */
  height: auto;
}

There is JavaScript trickery you can try. Brandon Smith outlined several …

Image
Chris Coyier on Jun 24, 2020 Updated on Sep 15, 2021
Image
Direct link to the article Two Browsers Walked Into a Scrollbar
scrollbars

Two Browsers Walked Into a Scrollbar

Surprise: scrollbars are complicated, especially cross-browser and cross-platform.

Sometimes they take up space and sometimes they don’t. Sometimes that is affected by a setting and sometimes it isn’t. Sometimes you can see them and sometimes you can’t unless you’re actually …

Image
Chris Coyier on Sep 18, 2019
Image
Direct link to the article The Current State of Styling Scrollbars in CSS (2022 Update)
scrollbars

The Current State of Styling Scrollbars in CSS (2022 Update)

Looking at Styling Scrollbars in CSS? Look no further, we've got you covered here. This covers how it's best done right now.
Image
Chris Coyier on Nov 23, 2018 Updated on Feb 21, 2022
Image
Direct link to the article scrollbar-gutter
scrollbars

scrollbar-gutter

The scrollbar-gutter property in CSS provides flexibility to determine how the space the browser uses to display a scrollbar that interacts with the content on the screen. The spec describes it as “reserving space for the scrollbar”. The beauty of …

Image
Geoff Graham on Nov 9, 2018 Updated on Jan 27, 2025
  • 1
  • 2
  • 3
  • Older Image

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top
Advertisement