Hi, I have a few problems which I'm not sure how to fix..
1) Firstly, there's a tiny gap in between the 'border-bottom' line from one cell to the next.
2) I need only the text to glow orange on the specific cell your mouse is on and also, show a hover message relating to the individual cell - rather than the entire row.
3) I need the width of the table column to be just a tad bigger than the text inside it (so it's not too cramped), but, if the text is too long I want it to cut the text (to prevent extreme stretching of the table).
STYLE:
PHP Code:
<style>td {
width: 8em;
line-height: 2em;
background-color: #fff;
font-weight: bold;
border-bottom:1px solid #000;
}
tr:hover {
color: #FFE600;
background-color: #7500d4;
}
tr:hover td {
background-color: transparent;
}</style>
PHP TABLES
PHP Code:
<?php
$across= 5 ;
$down = 4 ;
echo '<table>';
for($j=1; $j <= $down ; $j++){
echo '<tr title="You are looking at Row ' . $down . '" >';
for($i=1; $i <= $across; $i++){
echo "<td>Row $j Cell $i</td>";
}
echo "</tr>";
}
echo "</table>";
?>
Any ideas?