font-family: noto-serif;
}
+table {
+ border-collapse: collapse;
+ border: 1px solid grey;
+ width: 100%;
+}
+
+th {
+ background-color: #c69879;
+ border: 1px solid grey;
+}
+
+td {
+ padding: 2px;
+ border: 1px solid grey;
+}
+
+tr:hover {
+ background-color: #efdac3;
+}
+
/* Navigation bar
just simple bar from W3 schools with minor edits
https://www.w3schools.com/Css/css_navbar_horizontal.asp
$rows = explode('*', $fileContents);
// Create the table
- // the styles must be set here because the css won't work
- // properly with this php monster
- echo '<table border="1" style="border-collapse: collapse; border: 1px solid grey; width: 100%;">';
+ echo '<table>';
// Process each row
foreach ($rows as $key => $row) {
// Use <th> for the first row, <td> for the rest
$cellTag = $isFirstRow ? 'th' : 'td';
- // again... sorry for the styles
- echo '<' . $cellTag . ' style="padding: 2px; border: 1px solid grey">' . htmlspecialchars($column) . '</' . $cellTag . '>';
+ echo '<' . $cellTag . '>' . htmlspecialchars($column) . '</' . $cellTag . '>';
}
// End the table row
$rows = explode('*', $fileContents);
// Create the table
- // the styles must be set here because the css won't work
- // properly with this php monster
- echo '<table border="1" style="border-collapse: collapse; border: 1px solid grey; width: 100%;">';
+ echo '<table>';
// Process each row
foreach ($rows as $key => $row) {
// Use <th> for the first row, <td> for the rest
$cellTag = $isFirstRow ? 'th' : 'td';
- // again... sorry for the styles
- echo '<' . $cellTag . ' style="padding: 2px; border: 1px solid grey">' . htmlspecialchars($column) . '</' . $cellTag . '>';
+ echo '<' . $cellTag . '>' . htmlspecialchars($column) . '</' . $cellTag . '>';
}
// End the table row