Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 20 Oct 2026 - @91.55
Forum Activity: Two Stars Random | Recent Posts | Guild Recents
News: :4u: ~~~~~~~~~~~ Guild Events: Weekly zine jam 17: Fashion
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Can someone help me with scrollbars?


« previous next »
Pages: [1] Print Embed
Author Topic: Can someone help me with scrollbars?  (Read 369 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: Summer, 11 Jun 2026 @744 » 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: Stupid patrickHeartsButterflyMonkey⁴Pink 8 ball8 ballJohn Fuggler IIIJohn Fuggler IIJohn FugglerAir MailPurple-haired trollPink-haired trollGenderqueer charmBaby ozwompGuy with legsEverchanging cakeMatcha cakeJelloIcecreamTwilight
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
The Worm is creeping around Melonland profiles!Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #1 on: Summer, 11 Jun 2026 @755 » Toggle Font 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 https://origami.danq.dev/88x31.gif

Artifact Swap: PolyamorousI met Dan Q on Melonland!Joined 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
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe