Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
February 15, 2026 - @700.97 (what is this?)
Activity rating: Four Stars Posts & Arts: 60/1k.beats ~ Boop! The forum will close in 300.beats! Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :skull: Websites are like whispers in the night  :skull: Guild Events: There are no events!

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


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


⛺︎ My Room

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

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


larvapuppy
Sr. Member ⚓︎
****
View Profile WWWArt


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

Artifacts:
Wave MailDelicious CheesesealCubesealA snowman for your woesSpheal, I Choose You!
« Reply #1 on: February 14, 2026 @300.73 »

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: Furry Pride
virtualpet2001
Jr. Member ⚓︎
**
View Profile WWWArt


⛺︎ My Room

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

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


loren
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 Participanta puppy for your travelsFirst 1000 Members!
« Reply #3 on: February 14, 2026 @580.72 »

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


Artifact Swap: JurbyZurby
virtualpet2001
Jr. Member ⚓︎
**
View Profile WWWArt


⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!Water Creature
« Reply #4 on: Today at @50.22 »

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


Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ 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