I have been working on a website and just finished the main page with the header, body, and footer. Now, as I moved on to creating the second page, I encountered an issue. I copied and pasted the code for the header from the main page onto the second page without any problems. However, when I tried doing the same for the footer, it ended up aligning left instead of center. Despite having the exact same code and HTML structure, the alignment seems to be off. I've gone through the code multiple times but haven't been able to identify the problem yet.
CSS Code:
.end_text {
width: 100%;
}
.bottom_left li {
float:left;
list-style: none;
}
.bottom_lmid li {
float:left;
list-style: none;
margin-left: 10px;
margin-top: 7px;
}
.bottom_lmid li:first-child {
margin-left: 100px;
}
.bottom_rmid li {
float:left;
list-style: none;
margin-left: 10px;
margin-top: 7px;
}
.bottom_rmid li:first-child {
margin-left: 100px;
}
.bottom_right li {
float:left;
list-style: none;
margin-left: auto;
margin-top: 0px;
}
.bottom_right li:first-child {
margin-left: 100px;
}
HTML Code:
<div id="footer">
<div class="foot_bar">
<img src="../../images/bestfoodservicesweb_24.jpg" width="862"/>
</div>
<div class="end_text">
<ul class="bottom_left">
<li><img src="../../images/bestfoodservicesweb_34.jpg" width="80" height="26"/></li>
</ul>
<ul class="bottom_lmid">
<li><img src="../../images/bestfoodservicesweb_37.jpg" width="63" height="16"/></li>
<li><a href="http://www.bestfoodservice.us/contact.aspx"><img src="../../images/bestfoodservicesweb_38.jpg" width="63" height="16"/></a></li>
<li><img src="../../images/bestfoodservicesweb_39.jpg" width="99" height="16"/></li>
</ul>
<ul class="bottom_rmid">
<li><img src="../../images/bestfoodservicesweb_41.jpg" width="26" height="14"/></li>
<li><img src="../../images/bestfoodservicesweb_43.jpg" width="38" height="15"/></li>
</ul>
<ul class="bottom_right">
<li><a href="http://facebook.com"><img src="../../images/bestfoodservicesweb_27.jpg" width="25" height="25"/></a></li>
<li><a href="http://twitter.com"><img src="../../images/bestfoodservicesweb_29.jpg" width="25" height="25"/></a></li>
<li><a href="http://linkedin.com"><img src="../../images/bestfoodservicesweb_31.jpg" width="25" height="25"/></a></li>
</ul>
</ul>
</div>
</div>
You'll need to scroll down to view the footer images
A demo is provided below showcasing how the footer should look like
This is how the current layout looks