Aide affichage variable php
Bonjour,
j'ai un champ message que je fait apparaitre dans mon site web mais quand j'entre trop de texte le texte affiché dépasse mon template j'aimerait que ca se dessende en plusieurs lignes voici mon code pour afficher ma varriable
<td height="200" width="258" valign="top"><? echo $row["message"];?></td>
merci
j'ai un champ message que je fait apparaitre dans mon site web mais quand j'entre trop de texte le texte affiché dépasse mon template j'aimerait que ca se dessende en plusieurs lignes voici mon code pour afficher ma varriable
<td height="200" width="258" valign="top"><? echo $row["message"];?></td>
merci
3 réponses
-
Hello,
Voici une solution, il y en a certainement d'autres.<td> <div style="height:200px;width:258px;overflow:auto"> ton message </div> </td> -
Sinon, il faut enlever le height="200"
-
Comme sa ?
<table style:"width:50px">
<tr>
<td>
<div style="overflow:auto">
ton message
</div>
</td>
</tr>
</table>
Un width plus court...