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

Articles Tagged
scrollbars

19 Articles
{
,

}
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 …

Saleh Mubashar on Nov 14, 2022
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.…

Shawn Wang on Dec 24, 2021
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 …

Chris Coyier on Jan 26, 2021
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 …

Chris Coyier on Aug 14, 2020
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 …

Chris Coyier on Sep 15, 2021
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 …

Chris Coyier on Sep 18, 2019
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.
Chris Coyier on Feb 21, 2022
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 …

Geoff Graham on Jan 27, 2025
Direct link to the article What’s New In CSS?
:matches aspect ratio CSS logical properties scrollbars

What’s New In CSS?

Rachel hooks us up with what the CSS Working Group is talking about:

  • Styling scrollbars. This would come with properties like scrollbar-width and scrollbar-color. The best we have right now is proprietary WebKit stuff.
  • Aspect ratios. I imagine
…
Chris Coyier on Nov 2, 2018
  • 1
  • 2
  • 3
  • Older

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