I am currently in the process of creating a footer for my webpage and have implemented the following CSS styling:
#footer {
height: 100px;
background-color: #F3F3F3;
position: absolute;
bottom: 0;
}
Although the footer is displaying at the bottom of the page as intended, the background colors are not showing up. Instead, it appears to have the same plain white background as the rest of the page.
Any insights on why this issue is occurring?
EDIT I have double-checked for any conflicting or overriding CSS rules, but haven't found any.
EDIT2 Here is the HTML structure:
<div id="footer">
<center><p> Hello, I am a footer element </p></center>
</div>