It appears that you believe there is some extra space at the right end of the footer, but in reality, there isn't any.
Each list of entries with their h3 title is contained within a <div>
and each of these 4 divs has a CSS setting of width: 25%;
- this totals to 100% of the available space, leaving no room for additional spacing. If you wish to adjust the positioning of these divs to create space around them and then center them, you can attempt something like this:
<div id="footer">
<div id="footer-container">
<?php if ($informations) { ?>
<div class="column">
<h3><?php echo $text_information; ?></h3>
<ul>
<?php foreach ($informations as $information) { ?>
<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<div class="column">
<h3><?php echo $text_service; ?></h3>
<ul>
<li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
<li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
</ul>
</div>
<div class="column">
<h3><?php echo $text_extra; ?></h3>
<ul>
<li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
<li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
<li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
<li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
</ul>
</div>
<div class="column">
<h3><?php echo $text_account; ?></h3>
<ul>
<li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
</ul>
</div>
</div>
</div>
We have wrapped all four column divs within another div with the id footer-container
- now let's define some CSS styles for it:
#footer-container {
width: 90%;
margin: 0 auto;
}
With the adjusted width (90%), there will be some space surrounding the #footer-container
and using an 'auto' value for the left and right margins should center it within the #footer
div. Feel free to experiment with the width of the #footer-container
to suit your preferences.
Here is the jsFiddle link for reference.
Note: This setup will function correctly in versions up to 1.5.X, but may not work effectively in the new 2.0 version which utilizes Bootstrap grid columns for responsiveness.