I'm encountering an issue with my HTML code. I have a footer on my website containing three separate sections. On the left side, there are small logos for Facebook, Twitter, and YouTube. In the center is the copyright text for my website, and on the right side are additional icons for Facebook, Twitter, and YouTube. The problem arises when I include the copyright text, causing the right-side icons to extend beyond the footer area. Here is a screenshot of the issue:
HTML<div id="footer">
<div id="footerwrapper" style="margin-top: 78px">
<a href="<?php echo $config['twitter']; ?>"><div class="footer-twitter" style="float:left"></div></a>
<a href="<?php echo $config['youtube']; ?>"><div class="footer-youtube" style="float:left"></div></a>
<a href="<?php echo $config['facebook']; ?>"><div class="footer-facebook" style="float:left"></div></a>
<center><div style="padding-top: 24px;">Copyright goes here</div></center>
<a href="<?php echo $config['twitter']; ?>"><div class="footer-twitter"></div></a>
<a href="<?php echo $config['youtube']; ?>"><div class="footer-youtube"></div></a>
<a href="<?php echo $config['facebook']; ?>"><div class="footer-facebook"></div></a>
</div>
</div>
CSS
#footer {
margin-top: 40px;
background: #21282e;
height: 60px;
width: 100%;
color: #b0b6be;
font-size: 18px;
position:relative;
}
#footerwrapper {
margin: 0px auto;
width: 70%;
}
.footer-twitter {
width: 32px;
height: 32px;
background: url('../img/icons/twitter.png');
float: right;
display: inline-block;
margin-top: 16px;
margin-left: 16px;
border-radius: 4px;
}
.footer-youtube {
width: 32px;
height: 32px;
background: url('../img/icons/youtube.png');
float: right;
display: inline-block;
margin-top: 16px;
margin-left: 16px;
border-radius: 4px;
}
.footer-facebook {
width: 32px;
height: 32px;
background: url('../img/icons/facebook.png');
float: right;
display: inline-block;
margin-top: 16px;
margin-left: 16px;
border-radius: 4px;
}
Can anyone offer a solution to this issue? Thank you!