Marine1969
IS-IT--Management
I know this is more of a css issue but wondered if anybody had an idea here. I have everything set except 1 issue. The show/hide works when I do not style the row. When I style the row it only show/hides about 10px. Below is the css and the code...
As mentioned this works when the .tbl2 {display: none;} is not there. Any suggestions?
As mentioned this works when the .tbl2 {display: none;} is not there. Any suggestions?
CSS:
.tbl2 {
overflow-x:auto;
width: 100%;
border-collapse: collapse;
border: 1px solid #000;
\\margin-bottom: 15px;
display: none;
}
.tbl2 tr:hover {
background: #F2F2F2;
}
.tbl2 th {
background: linear-gradient(#fff, purple);
border: 1px solid gray;
border-radius: 25px;
}
.tbl2 td {
border: 1px solid gray;
padding: 2px;
}
PHP:
echo "<tr id='" . $row['cstnum'] . "'><td colspan='8'>";
echo "<table class='tbl2'>"
. "<tr><th>Billing Address</th><th>Shipping Address</th><th>Contacts</th><th>Info</th></tr>"
. "<tr><td>" . $row['baddr'] . "<br>" . $row['bcity'] . ", " . $row['bst'] . " " . $row['bzip'] . "</td>"
. "<td>" . $row['saddr'] . "<br>" . $row['scity'] . ", " . $row['sst'] . " " . $row['szip'] . "</td>"
. "<td>Phone 2: (" . substr($row['phone2'], 0,3) . ") " . substr($row['phone2'], 3,3) . " - " . substr($row['phone2'], -4) . "<br>"
. "Fax: (" . substr($row['fax'], 0,3) . ") " . substr($row['fax'], 3,3) . " - " . substr($row['fax'], -3) . "<br>"
. "Contact: " . $row['contact'] . "<br>"
. "Con Phone: (" . substr($row['cphone'], 0,3) . ") " . substr($row['cphone'], 3,3) . " - " . substr($row['cphone'], -4) . "</td>"
. "<td>Lic Exp: " . $row['expiration'] . "<br>Route: " . $row['route'] . "<br>Notes: " . $row['notes'] . "</td></tr></table>";
echo "</td></tr>";