It appears that your footer is disappearing because the element #footer
has been set with a fixed height of 835px. This causes the footer to always stay 835px from the top of the browser window. When the window size is reduced below 835px, the footer becomes invisible.
To ensure that the footer remains visible, consider changing its position to absolute
instead of fixed
. With absolute positioning, the footer will be positioned 835px from the top, relative to the webpage itself rather than the browser window.
If you want to make sure that the footer is always visible on screens of any size, you can also apply min-height: 835px;
to the body tag.
EDIT
To keep your footer centered while using absolute positioning, you can use a combination of left
and margin-left
. The following style code will center your footer, regardless of the window size.
#footer {
list-style: none;
position: absolute;
left: 50%; /* Always positions the footer at 50% of the screen width. */
margin-left: -446px; /* Adjusts for total footer width by halving it (e.g., -892px / 2 = -446px). */
top: 835px;
font-size: 14pt;
}