Reputation: 345
I was told the block-grid would space items evenly within the grid. Do I need to add a ".last" or something to the last li element for it to space them evenly? Because this is not evenly spaced, https://i.sstatic.net/qXeCE.png. You can see down below which border belongs to which element.
This is the only HTML in the body section. Using the latest version.
<div class="row">
<div class="large-12 column" style="border: 1px solid red;">
<ul class="large-block-grid-4" style="border: 1px solid black;">
<li><img src="http://placehold.it/150" /></li>
<li><img src="http://placehold.it/150" /></li>
<li><img src="http://placehold.it/150" /></li>
<li style="border: 1px solid blue;"><img src="http://placehold.it/150" /></li>
</ul>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
Upvotes: 0
Views: 373
Reputation: 2670
Just add a text-align:center;
to your main row and be sure you also include the ability for responsiveness by including grid dimensions for medium/small/extra-small devices. Zurb/Bootstrap are built for responsive devices, meaning it should be easy to create a responsive website. View the JSFiddle below to get a better idea of what I am talking about.
Upvotes: 2