title: php loop breaking down my css look
body: <p>I am using an while loop and i want to generate the output in a well formatted look like a portfolio my code is here i just dont know what is breaking it down</p>
  
  <pre><code>&lt;div class="container"&gt;
  
      &lt;div class="row"&gt;
      &lt;?php 
      while($fetch=mysqli_fetch_assoc($run)){
      ?&gt;
      &lt;div class="col-sm-3 col-xs-6"&gt;
                  &lt;a href="#"&gt;
                      &lt;img class="img-responsive portfolio-item" src="~admin/uploadsthumbs/&lt;?php echo $fetch['daily_img'];?&gt;" alt=""&gt;
                  &lt;/a&gt;
      &lt;/div&gt;
      &lt;?php
      }
      ?&gt;                              
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>However the desired output which i want to have is like in the link below in the Related Project sections.
  <a href="https://blackrockdigital.github.io/startbootstrap-portfolio-item/" rel="nofollow">https://blackrockdigital.github.io/startbootstrap-portfolio-item/</a></p>