Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm having a problem with my website: Everything opens fine when the window size is the same as the background image or bigger, but when i open on a smaller window, there's no scroll bar so the footer disappears.

attached is an image of what happens with a small window:

SMALL WINDOW

and

THIS IS MY WEBSITE

share|improve this question
your code or jsfiddle??? – Ritabrata Gautam 2 days ago
add comment (requires an account with 50 reputation)

1 Answer

Your footer is disappearing because the element #footer set with a fixed height of 835px. This is causing the footer to always be 835px from the top of the browser window. Once the window is sized less than 835px the footer is no longer visible.

In order to keep the footer visible, try changing position to absolute instead of fixed. This will position the footer 835px from the top, relative to the top of the webpage itself, not the browser window.

To guarantee the footer will always be visible on any size screen, you could also apply min-height: 835px; to your body tag.

share|improve this answer
add comment (requires an account with 50 reputation)

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.