I have a full width div (#instagram
) that has an a unordered list of images in it (the number of lis vary). I want the ul
(and it's children) to be centered inside of the div and expand out in both directions without wrapping to next line. I have included a diagram below. How do I implement this in a responsive fashion?
<div id = "instagram">
<ul class="photos">
<li><img src = "http://placehold.it/200" /></li>
<li><img src = "http://placehold.it/200" /></li>
<li><img src = "http://placehold.it/200" /></li>
</ul>
</div>
Update: I realize that my diagram looks somewhat like a carousel but this is not what I'm looking for. I do not need any "paging" functionality. Also, I want the images to be cut off on the edges as I have shown.
Update #2 Here is a starting jsfiddle - http://jsfiddle.net/MULCU/