title: Applying css to a php table
body: <p>I have a generated php table which I would like to apply style in my style sheet, so for example top:15px, left:10px ect..., not sure how call the table and link it with css - </p>
  
  <pre><code>echo "&lt;table border=1&gt;";
  for ($i=0;$i&lt;count($calls);$i++){
    for ($j=0;$j&lt;count($days);$j++){
      $k = $days[$i].$times[$j];
      if (array_key_exists($k,$date)){
        echo "&lt;td colspan='{$date[$k][1]}'&gt;".
             "{$date[$k][0]}&lt;/td&gt;";
        $j+=$date[$k][1]-1;
      }else
        echo "&lt;td style='color:gray'&gt;$k&lt;/td&gt;";
    }
  
    echo "&lt;/tr&gt;";
  }
  echo "&lt;/table&gt;";
  </code></pre>
  
  <p>any help much appreciated, thank you</p>