Anywho, I'm trying to apply css to a table that I'm printing out with php. The code looks kind of like this.
Code: Select all
<div id='info'>
<link rel='stylesheet' href='content-layout.css'>
<table class='infoTable'>
<?php
foreach($userInfo as $field => $value){
echo '<tr>';
echo "<td class='elements'>".$field."</td><td>".$value."</td>";
echo '</tr>';
}
?>
</table>
</div>
it looks like this
Code: Select all
body
{
margin: 0;
color: #666666;
background-color: #000000;
font-family: serif, verdana;
}
#info.infoTable
{
border: 1px solid #FFFFFF;
background-color: #666666;
padding: 5%;
}
applying the css to different parts. Changing where the table tag is in the html/php. I got nothing.