title: How to center this horizontal list of images?
body: <p>In the following fiddle you see 3 images.
  I want to center the UL on the screen. It seems to be impossible for me. Can anybody help?</p>
  
  <p><a href="https://jsfiddle.net/dtnp5ko2/" rel="nofollow">https://jsfiddle.net/dtnp5ko2/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.loc-caption:before {
    content: attr(title);
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li style="float: left;width: 25%;list-style-type:none;" class="loc-caption" title="location 1"&gt;
      &lt;img id="loc1" src="http://design-boxsprings.nl/beeld-matrl/locatie-showroom.jpg" width="100%"/&gt;
    &lt;/li&gt;
    &lt;li style="float: left;width: 25%;list-style-type:none;" class="loc-caption" title="location 2"&gt;
      &lt;img id="loc2" src="http://design-boxsprings.nl/beeld-matrl/locatie-kantoor.jpg" width="100%"/&gt;
    &lt;li style="float: left;width: 25%;list-style-type:none;" class="loc-caption" title="location 3"&gt;
      &lt;img id="loc3" src="http://design-boxsprings.nl/beeld-matrl/locatie-magazijn.jpg" width="100%"/&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>UPDATE: Thank you Pangloss. Your codes center the UL on the screen.
  The images are not automatically placed on the same horizontal level.
  If I type some more text above 1 image, then that images shifts down.
  How to align the 3 images on the same horizontal level, exactly next to each other?</p>
  
  <pre><code>    &lt;ul&gt;
    &lt;li class="loc-caption" title="location 1: office and warehouse "&gt;
      &lt;img id="loc1" src="http://design-boxsprings.nl/beeld-matrl/locatie-showroom.jpg" /&gt;
    &lt;/li&gt;
    &lt;li class="loc-caption" title="location 2"&gt;
      &lt;img id="loc2" src="http://design-boxsprings.nl/beeld-matrl/locatie-kantoor.jpg" /&gt;
    &lt;/li&gt;
    &lt;li class="loc-caption" title="location 3"&gt;
      &lt;img id="loc3" src="http://design-boxsprings.nl/beeld-matrl/locatie-magazijn.jpg" /&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>You can see the problem here:
  <a href="https://jsfiddle.net/dtnp5ko2/2/" rel="nofollow">https://jsfiddle.net/dtnp5ko2/2/</a></p>