Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @520.50
Activity rating: Four Stars Posts & Arts: 66/1k.beats Random | Recent Posts | Guild Recents
News: Love is not possession  :4u: Guild Events: Summer Projects

+  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 152 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: a Summer day » 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: ERR_FILE_NOT_FOUNDShopkinStupid patrickHeartsButterflyPink starMonkey⁴PuzzlingPurple beetleGothic eyebatGrapesPink 8 ball8 ballLollipopJohn Fuggler IIIJohn Fuggler IIJohn FugglerAir MailPurple-haired trollPink-haired troll
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!Visited on Melon's 10th Anniversary!
« Reply #1 on: a Summer day » 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!PolyamorousDoctor 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
@000 MelonLand Zap! Want to Login or Join ? Forum Art Hub Chat Webring Editor Recent Edits Tenement Arcade Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers Frutiger Aero Forum m15o's Web Services 32Bit Cafe iMood
Minecraft: Online
Join: craft.melonking.net