title: How to make student id card in horizontal shape
body: <p>How to make student id card in horizontal shape?</p>
  
  <p>This code showing id card in vertical shape and I want in horizontal shape. How can I fix this issue? Please help me to fix this issue.</p>
  
  <p>I want it like this:</p>
  
  <pre><code>----------------------------------
  | Photo    | Student Detail      |
  ----------------------------------
    here     |Student Name :       |
             |Roll No:             |
    photo    |Classs :             |
             |Grn    :             |
             |Father Name :        |
  ----------------------------------
  </code></pre>
  
  <p>and now its showing like this:</p>
  
  <pre><code>--------------------------------------------------------
  Photo                  |        Student Detail         |
  --------------------------------------------------------
        here     |                     
                 |
        photo    |
                 |
                 |
  --------------------------------------------------------
  Student Name:                                          |
  Roll No:                                               |
  Class:                                                 |
  Grn:                                                   |
  Father Name:                                           |
  --------------------------------------------------------
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>echo "&lt;table class='hovertable' border='1' cellpadding='0' cellspacing='0'&gt;";
  echo "&lt;tr&gt;&lt;th&gt;Photo&lt;/th&gt;&lt;th&gt;Student Detail&lt;/th&gt;&lt;/tr&gt;";
  
  if ($rows &gt; 0) {
          while($row = mysql_fetch_array($result)) {
                  echo "&lt;tr&gt;&lt;td&gt;";
        echo "&lt;img src=http://localhost/student/images/".$row['photo'] ." width='150' height='100'&gt;&lt;/a&gt;&lt;/td&gt;";
        echo "&lt;tr&gt;&lt;tr&gt;&lt;td&gt;";
                  echo $row['name'];
                  echo "&lt;/tr&gt;&lt;/td&gt;";
          echo "&lt;tr&gt;&lt;td&gt;";
                  echo $row['rollno'];
                  echo "&lt;/tr&gt;&lt;/td&gt;";
          echo "&lt;td&gt;";
                  echo $row['fathername'];
                  echo "&lt;/tr&gt;&lt;/td&gt;";
          echo "&lt;td&gt;";
          echo $row['class'];
                  echo "&lt;/td&gt;&lt;/tr&gt;";
  
          }
  } else {
          echo "&lt;tr&gt;&lt;td colspan=\"5\"&gt;No results found!&lt;/td&gt;&lt;/tr&gt;";
  }
  
  echo "&lt;/table&gt;";
  </code></pre>