title: Image not displaying in horizontal
body: <p>I want the image to automatically be in horizontal, Should I put another div? because the picture will be save automatically by their position</p>
  
  <p>And here's my CSS:</p>
  
  <pre><code>.row{
      display: block;
      height:auto;
      width:auto;
  }
  
  .box_img2{
      width: 20px;
      padding : 5px;
      margin-bottom:5px;
      background-color:white;
      height:30px;
      float:center;
  }
  </code></pre>
  
  <p>And here's my PHP:</p>
  
  <pre><code>&lt;?php
                                  include('../connection/connect.php');
                                  $result = $db-&gt;prepare("SELECT * FROM candposition ORDER BY posid ASC");
                                  $result-&gt;bindParam(':userid', $res);
                                  $result-&gt;execute();
                                  for($i=0; $row = $result-&gt;fetch(); $i++){
                                  $dsds=$row['posid'];
  
  
                                  $resulta = $db-&gt;prepare("SELECT sum(votes) FROM candidates WHERE posid= :a");
                                  $resulta-&gt;bindParam(':a', $dsds);
                                  $resulta-&gt;execute();
                                  for($i=0; $rowa = $resulta-&gt;fetch(); $i++){
                                  $dsada=$rowa['sum(votes)'];
                                  }
                                  echo '&lt;div style="margin-top: 18px;"&gt;';
                                  echo '&lt;strong&gt;'.$row['pos_name'].'&amp;nbsp;'.'&lt;/strong&gt;&lt;br&gt;';
  
                                  $results = $db-&gt;prepare("SELECT * FROM candidates,student WHERE candidates.idno=student.idno AND posid= :a ORDER BY votes DESC");
  
                                  $results-&gt;bindParam(':a', $dsds);
                                  $results-&gt;execute();
                                      for($i=0; $rows = $results-&gt;fetch(); $i++){
  
                                          if($dsds=='Commissoner'){
                                              echo $rows['prog_id'].$rows['prog_id'].'&amp;nbsp;&amp;nbsp;'.$rows['prog_name'].'&amp;nbsp;&amp;nbsp;=&amp;nbsp;&amp;nbsp;'.$rows['votes'];
  
                                          }else {
                                              echo "&lt;div class='row'&gt;&lt;div class='box_img2'&gt;&lt;br&gt;";
                                              echo '&lt;img src="savephp/images/'.$rows['image'].'" width="60" height="70px" /&gt;'.'&amp;nbsp;'.$rows['lastname'].',&amp;nbsp;'.$rows['firstname'].'&lt;br&gt;'.'&amp;nbsp;=&amp;nbsp;'.$rows['votes'];
                                              echo '&lt;/div&gt;';
                                          }
                                          echo '&lt;/div&gt;'.'&lt;/div&gt;';
                                              $sdsd=$dsada    
                                          ?&gt;
                                      &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  
                                      &lt;img src="../img/percent.gif"width='&lt;?php echo(100*round($rows['votes']/($sdsd),2)); ?&gt;'height='10'&gt;
                                  &lt;?php 
  
  
          if ($rows['votes']==0){
                              echo "&lt;br&gt;";}
                              else {
                              echo(100*round($rows['votes']/($sdsd),2)); ?&gt;%&lt;br&gt;
                      &lt;?php
                          }
                          echo '&lt;/div&gt;';
                      }
  
                      ?&gt;  
                      &lt;?php
              }
              ?&gt;
  </code></pre>
  
  <p>Here's the image:
  <a href="http://i.stack.imgur.com/7dCPE.png" rel="nofollow">I want to be like this </a></p>