Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
May 21, 2026 - @259.36 (what is this?)
Activity rating: Four Stars Posts & Arts: 61/1k.beats Random | Recent Posts | Guild Recents
News: inconvenience is counterculture :eyes: Guild Events: Spring Themed Projects

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Some pages are slightly off-center??


« previous next »
Pages: [1] Print Embed
Author Topic: Some pages are slightly off-center??  (Read 842 times)
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


getting hard to be someone but it all works out
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!Water Creature
« on: February 14, 2026 @280.05 » Embed

This is probably related to my usage of the <center> tag but I don't know how to fix it: on my site, pages that are under the actual content div's minimum-height of 224 pixels (such as this page) are centered at a slightly different X position than pages that exceed the maximum height (such as this page)... it is very minor but it is currently bothering me quite a bit LOL

at the very least this happens to me on firefox but I don't currently have any other browsers installed to test it with. anyone else have experience with this?
Logged

https://cloudgazer.neocities.org/links/cloudgazer.png
larvapuppy
Sr. Member ⚓︎
****
View Profile WWWArt


World's Worst Baby Seal
⛺︎ My Room
iMood: larvapuppy
RSS: RSS

Guild Memberships:
Artifacts:
CubesealSpheal, I Choose You!Wave MailsealFirst 1000 Members!Bisexual
« Reply #1 on: February 14, 2026 @300.73 » Embed

I think it's because one has a scrollbar and the other doesn't; the scrollbar is squishing the page width slightly and it's centering itself on this new page width. I have this problem on some of my pages too and I usually just add more content to make them longer. I'm sure you could force a specific width to fix it though, if you don't feel like going that route. Also I love your Latias banner!
Logged


Artifact Swap: cup 4 u
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


getting hard to be someone but it all works out
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!Water Creature
« Reply #2 on: February 14, 2026 @365.56 » Embed

Ah I forgot it works like that >_> thats weird. Im sure theres a way to fix it with javascript but it is way out of my skill level T_T thank you so much for explaining and thank you for liking my site
Logged

https://cloudgazer.neocities.org/links/cloudgazer.png
ribose
Sr. Member ⚓︎
****
View Profile WWWArt


⚘ ⚘ ⚘ ⚘ ⚘
⛺︎ My Room
StatusCafe: ribose
iMood: ribose
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
I met Dan Q on Melonland!Fio the HamsterAmmoniteSee A Bug Summer 2025 ParticipantFirst 1000 Members!spring 2023!
« Reply #3 on: February 14, 2026 @580.72 » Embed

here are two simple ways to fix this with CSS, no javascript or math or extra content required!

1. the scrollbar-gutter property was created to address this exact problem. add the following to your CSS to leave a scrollbar-sized space on the right side of the page, whether the scrollbar is there or not.

Code
html { 
  scrollbar-gutter: stable;
}

2. i think scrollbars are cute, so what i like to do when this happens is make the scrollbar display all the time, even on short pages.

Code
body { 
  overflow-y: scroll;
}
Logged

https://camo.githubusercontent.com/491b9e205611e603fa426d303bef52528c10ba8b96d3139e39a2e38103e5c563/68747470733a2f2f7269626f2e7a6f6e652f38387833312f736974652f7269626f73652e706e67 https://camo.githubusercontent.com/54e6ab289e4df0e4e42c9c30c886d2d7c8df708686029a1f654e2930389454b4/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f76696577736f757263652e706e67 https://camo.githubusercontent.com/f5bfa6417506fb7531aa82818e33c1ab1277070812531c09638c5aca5d2ea164/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7777772e706e67 https://camo.githubusercontent.com/f7d9283e2ad6924bc82c68b6bd1637dfe82b9baa6362247cee489c9f8723bed8/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7465616c2e706e67 https://camo.githubusercontent.com/66b9d37563323d2962eccea0381ded1337d1d12652da870b82e8c40d5c2e0d54/68747470733a2f2f7269626f2e7a6f6e652f73756e6461792f666973682f726174686572626566697368696e2e706e67

Artifact Swap: bitsy catPhone SquirrelRoachmanstar
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


getting hard to be someone but it all works out
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!Water Creature
« Reply #4 on: February 15, 2026 @50.22 » Embed

1. the scrollbar-gutter property was created to address this exact problem. add the following to your CSS to leave a scrollbar-sized space on the right side of the page, whether the scrollbar is there or not.

Code
html { 
  scrollbar-gutter: stable;
}
omg you are a lifesaver T_T thank you verymuch
in general it feels like a lot of scrollbar css is a lost art almost? neocities editor doesnt recognize my css tags for it lol. i remember that old websites would have different colored scrollbars all the time (looked especially nice with the more 3d design used in older windows) but it seems like every browser just deprecated it for many years. i wonder why?
Logged

https://cloudgazer.neocities.org/links/cloudgazer.png
pepper
Full Member ⚓︎
***
View Profile WWWArt


🐾 local furry punk ⛥ she/her
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: mildlypepper

Guild Memberships:
Artifacts:
Joined 2025!SpiffoI met Dan Q on Melonland!pepperartemissodie
« Reply #5 on: February 15, 2026 @859.56 » Embed

it looks like there isn't a lot of support for customizing scrollbars. There is a newly supported `scrollbar-color` css property that works in most major browsers, apparently. However I can't seem to get it working on my site  :trash: I keep getting "invalid property value" when trying to set the value for scrollbar-color to a specific color. <sigh> oh well. I really wish that there was more we were allowed to do with CSS to make more expressive sites, it feels so limited sometimes.
Logged

  :dog:  I'm verbose. Sorry! (not sorry)

https://mildlypepper.net/media/buttons/pepperbutton.png     https://mildlypepper.net/media/gif_collection/noai_tiny.png

Artifact Swap: ah!!!!!lighthouse keeper artemisPuff Creaturepepper_adoptsmuggler?? i hardly knower!Monster Creature
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

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net