Forcer le retour à la ligne
Salut,
Je n'arrive pas à forcer le retour à ligne dans les cellules du tableau.
Pourtant j'ai bien definie la largeur de mon tableau en px.
Quelqu un pourrait m'aider merci
voici le code html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<table class="tab_shootbox">
<?
//connexion bd
while ($donnees = mysql_fetch_array($reponse))
{
?>
<tr><td class="td_shg"><? echo $donnees['name']; ?></td><td class="td_shd">heure</td></tr>
<tr><td class="td_sb" colspan="2"><? echo $donnees['message']; ?></td></tr>
<?
}
?>
<tr><td colspan="2"><center>Rafraichir / <a href="index.php?page=shootbox">Poster</a></center></td></tr>
</table> |
et Css
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
.tab_shootbox{
width: 145px;
margin: auto;
}
.td_shg
{
width: 95px;
border: 1px solid rgb(185,166,236);
}
.td_shd
{
border: 1px solid rgb(185,166,236);
}
.td_sb
{
height: 70px;
border: 1px solid rgb(185,166,236);
} |