0
I’m having a hard time putting a table inside a tab because it’s always outside.
I have the following code:
echo'<div id="tabs-1">
<p><b>Alvará: </b></p>';
echo '<table width=500>
<tr>
<td><b>Número</b></td>
<td><b>Validade</b></td>
<td><b>Anexo</b></td>
</tr>';
echo "<td>".$exibe['AlvaraNumero']."</td>";
if ($exibe['AlvaraValidade']) {
if (strtotime($exibe['AlvaraValidade']) < time()) {
echo "<tr>";
echo " <td>'<span style='color:red'>".$exibe['AlvaraValidade']."</span>'</td>";
}else{
echo " <td>".$exibe['AlvaraValidade']."</td>";
}
echo "<td><a href='MostrarAlvara.php?id=".$exibe['id']."'>Ver PDF </a></td>";
echo "</tr>";
}
echo '</table>';
'</p>
</div>';
Post also the CSS code, so it gets complicated to say, because if you have a fixed size of
tabs-1
and the size of the table is larger than this, this may be the reason. see http://jsfiddle.net/abfurlan/4YmKG/– abfurlan
i didn’t use css. But out of the tab the size is good
– ChrisAdler
Ask your question about the output that breaks from this php generated in the browser in your question or in a Jsfiddle. This makes it easier to see the problem.
– Wakim