title: Inline Styling in PHP
body: <p>I am styling a page that has PHP in the middle that echos out a table.
  I have the html centered through an external style sheet but the PHP section(where the table is wont center) so I am thinking the best way to style this is for inline css in the php section. any help is appreciated.</p>
  
  <pre><code>// display data in table
  
  
  
  
  echo "&lt;table border='1'  cellpadding='2' class='footable mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--4dp full-width'&gt;";
  
  echo "&lt;tr&gt; &lt;th&gt;ID&lt;/th&gt; &lt;th&gt;Administration Console&lt;/th&gt; &lt;th&gt;Product Version&lt;/th&gt; &lt;th&gt;Platform&lt;/th&gt; &lt;th&gt;Database&lt;/th&gt; &lt;th&gt;Owner&lt;/th&gt; &lt;th&gt;Status&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;&lt;/th&gt;&lt;/tr&gt;";
  
  
  
  // loop through results of database query, displaying them in the table
  
  while($row = mysql_fetch_array( $result )) {
  
  
  
  // echo out the contents of each row into a table
  
  echo "&lt;tr&gt;";
  
  echo '&lt;th&gt;' . $row['id'] . '&lt;/th&gt;';
  
  echo '&lt;td&gt;&lt;a href="'.$row['curl'].'"&gt;'.$row['curl'].'&lt;/a&gt;&lt;/td&gt;';
  
  echo '&lt;td&gt;' . $row['pversion'] . '&lt;/td&gt;';
  
  echo '&lt;td&gt;' . $row['platform'] . '&lt;/td&gt;';
  
  echo '&lt;td&gt;' . $row['dversion'] . '&lt;/td&gt;';
  
  echo '&lt;td&gt;&lt;a href="mailto:'.$row['email'].'"&gt;' . $row['email'].'&lt;/a&gt;&lt;/td&gt;';
  
  echo '&lt;td&gt;' . $row['status'] . '&lt;/td&gt;';
  
  echo '&lt;td&gt;&lt;a href="php/edit.php?id=' . $row['id'] . '"&gt;Edit&lt;/a&gt;&lt;/td&gt;';
  
  echo '&lt;td&gt;&lt;a onclick="javascript:confirmationDelete($(this));return false;" href="php/delete.php?id=' . $row['id'] . '"onclick="return confirm("Do you want to delete this?")"&gt;Delete&lt;/a&gt;&lt;/td&gt;';
  
  echo "&lt;/tr&gt;";
  
  }
  
  
  
  
  
  // close table&gt;
  
  echo "&lt;/table&gt;";
  
  ?&gt; 
  </code></pre>