Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
June 11, 2026 - @945.32 (what is this?)
Activity rating: Four Stars Posts & Arts: 74/1k.beats Random | Recent Posts | Guild Recents
News: :sleep: These are fast times on the World Wide Web~ Guild Events: Happy Pride Month Fibre Artists!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ☞ ∙ Life on the Web
| | |-+  Can someone help me with scrollbars?


« previous next »
Pages: [1] Print Embed
Author Topic: Can someone help me with scrollbars?  (Read 24 times)
Duck (Ray)
Casual Poster ⚓︎
*
View Profile WWWArt


Call me Duck, or Ray(My IRL name!)
⛺︎ My Room
SpaceHey: Friend Me!
iMood: RayLeJeune
PicMix: perlehaut

Guild Memberships:
Artifacts:
Leo the Bettaビートルさんbraap braap pew pewNotepadCompact DiscMonkey lover
« on: Today at @743.54 » Embed

So, I'm working on my Neocities site. (It's ugly, I know. please be nice.)

I recently decided to change the scrollbar since the default is a bit ugly. I figured out all on my own how to set the background image which was cool, but even after extensively searching the web I still can't find two very important things.

1- Is there any way at all to make it shorter? It takes up so much height!

2- Is there a way to add a margin? It's directly touching the border and it looks quite ugly :(


please help!!!


https://i.ibb.co/qLC9MyTW/image.png
Logged

https://i.ibb.co/9k1Pzz4Y/0123-glitterpink.gif

Artifact Swap: The Worm is creeping around Melonland profiles!Stupid patrickBaseballHeartsFloewrStrawberry shortcakeDuckHeartButterflyWingBest colorPink starMelonPaintMonkey⁴CherriesIcecream sundaePuzzlingDripping inkyshroomUnpleasantPurple beetle
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!
« Reply #1 on: Today at @755.22 » Embed

The height of a scrollbar is, by convention, the height of the area that the scrollbar scrolls; it's a user interface affordance to help the user understand what will change when they scroll. The height of the bar within the scrollbar is representative of how much content can be seen right now.

I'm not sure which of those you mean, but I'm moderately confident neither can be controlled by CSS alone (without changing the size of the scrollable container or entirely hiding the scrollbars... which, by the way, some but not all operating systems will do by default until they're hovered over or scrolled!).

I notice that your "Nav" section has sideways-scrolling, which you probably don't want. It's a consequence of the width of the content within, but there's nothing useful off to the right so you might like to do something about that, though, maybe, with e.g.:


Code
.bio-column {
  /* ... existing stuff ... */

  overflow-x: hidden;
}

You could almost-certainly add some kind of JavaScript that disabled the regular scrolling, listened for mousewheel (and ideally touch-drag) events (and optionally clicks on some kind of "page down" button or something?) and then scrolled on the user's behalf?

Another option would be trying to hide the scrollbar entirely and assuming that users will understand that they can scroll. There's no CSS way to do this that works in all browsers, but this will work in Chromium-based ones I've applied it to you bio, blog, and collection columns by way of example) - I tested with Edge and it works pretty well:


Code
.bio-column, .blog-column, .collection-column {
  &::-webkit-scrollbar {
    display: none;
  }
}
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!Polyamorousradio polyDoctor RedactedJoined 2025!
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
MelonLand @000

Minecraft: Online
Join: craft.melonking.net