简体   繁体   中英

why is my site's footer stuck to the top of my page?

This is a Wordpresss site and I believe this is a theme issue that is causing the footer to stick to the top of the page.

I can't figure out a site-wide fix for the issue. I have used:

.l-footer {
position:absolute;
bottom:0;
}

and it just makes the footer disappear entirely.

Try position:relative , position:fixed , and display:block also. Once you have the right one, take a note on how they work and also see the changes that they made.

EDIT:

Try this:

.somefooter {
    display:inline-block;
    overflow: hidden;
}

Through I think one of them should do it, place them in your footer tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM