Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 04 Oct 2026 - @801.35
Forum Activity: Four Stars ~ Boop! The forum will close in 199.beats! Random | Recent Posts | Guild Recents
News: :seal: Thank you for today! :seal: Guild Events: TIME FOR HALLOWEEN CRAFTS!
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  HELP: How to keep the footer down?


« previous next »
Pages: [1] Print Embed
Author Topic: HELP: How to keep the footer down?  (Read 2976 times)
bythemeadow
Casual Poster ⚓︎
*
View Profile WWW


she/faer
⛺︎ My Room

Artifacts:
First 1000 Members!Joined 2022!
« on: Autumn, 05 Sep 2022 @017 » Toggle Font Embed

so if i have my footer and my mainpage set as position:static; then it renders in order, showing the footer at the very bottom with a slight margin. easy. my problem is that the mainpage element has to have position:absolute; or else the nav buttons i built aren't selectable (they are placed underneath the main div and stick out from the side, like a bookmark.) i'm not sure why this is but it wouldn't be a problem if it didn't affect the footer. the mainpage either covers the footer or it renders halfway up the page. how do i fix this?

Logged

https://i.imgur.com/biSTOEV.gif
puhuhuhuhu
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #1 on: Autumn, 05 Sep 2022 @497 » Toggle Font Embed

Its a little hard to figure out exactly what your issue is, BUT a thread light this might be helpful?
https://stackoverflow.com/questions/44258085/css-how-to-attach-footer-to-the-bottom-of-the-page

When you set something as position absolute, it no longer takes up space on the page so the footer will no longer move down to avoid it. So you need to make something take up that space.

You could make an invisible div that is full height, then set pointer events none on it https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events
You could also try playing with the z-index to make it behind everything else https://developer.mozilla.org/en-US/docs/Web/CSS/z-index

Those might also be helpful for figuring out your navbar or footer issues ^^

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayHave a chillpillRed Tulip100 coins<3curious fish
bythemeadow
Casual Poster ⚓︎
*
View Profile WWW


she/faer
⛺︎ My Room

Artifacts:
First 1000 Members!Joined 2022!
« Reply #2 on: Autumn, 05 Sep 2022 @828 » Toggle Font Embed

oh this is perfect, thank you! i didn't know that about position:absolute, good to know :]

Logged

https://i.imgur.com/biSTOEV.gif
puhuhuhuhu
Memory
Guest

« Reply #3 on: Autumn, 05 Sep 2022 @860 » Embed

In general, it's better if you can find a way around using absolute positioning to begin with. I know all too well the temptation to use "position: absolute" because it's the easiest way to put something exactly where you want it, but using a grid or flex box is usually the better option because it'll naturally work with the rest of your layout.

Alternatively, you could use "position: fixed" on the footer so that it is always floating on the bottom of the screen, but without seeing your design it's hard to say if that would work for you.

Logged
bythemeadow
Casual Poster ⚓︎
*
View Profile WWW


she/faer
⛺︎ My Room

Artifacts:
First 1000 Members!Joined 2022!
« Reply #4 on: Autumn, 05 Sep 2022 @864 » Toggle Font Embed

In general, it's better if you can find a way around using absolute positioning to begin with. I know all too well the temptation to use "position: absolute" because it's the easiest way to put something exactly where you want it, but using a grid or flex box is usually the better option because it'll naturally work with the rest of your layout.

Alternatively, you could use "position: fixed" on the footer so that it is always floating on the bottom of the screen, but without seeing your design it's hard to say if that would work for you.

i've heard this a couple times, i'll look into it :ozwomp:

Logged

https://i.imgur.com/biSTOEV.gif
puhuhuhuhu
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