ok, so i have a csv file that i’m calling with a php script:
[CODE]<?php
$file=”youths.csv”;
if(file_exists($file) && is_readable($file)){
if($fp=fopen($file,’r’)) {
if($line=fgetcsv($fp)) {
print “<table>n”;
do {
print “<tr>”;
foreach($line as $cell){
print “<td>$cell</td>”;
}
print “</tr>n”;
}while($line=fgetcsv($fp));
print “</table>n”;
}
}else{
print “Failed to open file”;
}
}else{
print file_exists($file)?
“File $file is not readable”:
“File $file does not exist”;
}
?>
i would like to know how to apply css styles to this table. i would like to change the width of each column, and change the font style and color of the column labels. i’m not too experienced with php but i do know some basic css.