Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @749.63
Activity rating: Three Stars Posts & Arts: 47/1k.beats Random | Recent Posts | Guild Recents
News: There's a great big indie web tomorrow! :smile: Guild Events: Summerween Watch-a-thon

+  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 1042 times)
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Joined 2026!Water Creature
« on: a Winter night » 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:
Visited on Melon's 10th Anniversary!CubesealSpheal, I Choose You!Wave MailsealFirst 1000 Members!
« Reply #1 on: a Winter day » 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 uStripe²hold it!
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Joined 2026!Water Creature
« Reply #2 on: a Winter day » 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:
Visited on Melon's 10th Anniversary!Learning to swim!Fio the HamsterAmmoniteSee A Bug Summer 2025 ParticipantFirst 1000 Members!
« Reply #3 on: a Winter day » 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: Sonic the HedgehogMiles Knuckles the EchidnaShadow the HedgehogRouge the BatAmy RoseCream the RabbitE-102 GammaChaosEmerlEggmanBall Creaturecinnamoroll gift
virtualpet2001
Full Member ⚓︎
***
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Joined 2026!Water Creature
« Reply #4 on: a Winter night » 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
Sr. Member ⚓︎
****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Joined 2025!SpiffoI met Dan Q on Melonland!pepperartemissodie
« Reply #5 on: a Winter night » 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/pepper-button.png     https://mildlypepper.net/media/gif_collection/noai_tiny.png

Artifact Swap: Puff Creaturesmuggler?? i hardly knower!Monster CreatureSquirtle!!!!
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