Bonjour,
J'essaie d'aligner une photo et du texte.
Mais je n'y arrive pas , ma photo et considérée comme un caractère. Le texte s'affiche à la suite de la photo.
Quelqu'un pourrait-il m'aider ?
Merci beaucoup
Voici mon code :
Voici le code de mon style :
.tabfd2 {
background-color: #FFFFFF;
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
height: 100px;
display: block;
text-align: left;
vertical-align: top;
J'essaie d'aligner une photo et du texte.
Mais je n'y arrive pas , ma photo et considérée comme un caractère. Le texte s'affiche à la suite de la photo.
Quelqu'un pourrait-il m'aider ?
Merci beaucoup
Voici mon code :
<span class="actualites">
<span class="tabfd2">
<? if($res_news['news_photo']!=''){?>
<img src="administration/news/photos/<? echo $res_news['news_photo'] ?>" width="80" height="80" >
<? }?> <? echo substr( strip_tags($res_news['news_corps_1']),0,400)."..."; ?>
</span>
<span class="txt6">
Lecteurs :
<? echo $res_news['news_visites'] ?>
<?
if($res_news['news_fic_1'] !='')
{
?>
Télécharger le fichier
associé à l'article : <a href="administration/news/fichiers/<? echo $res_news['news_fic_1'] ?>" target="_blank">ici</a>
<?
}
if($res_news['news_lien'] !='')
{
?>
Lien web :
<a href="http://<? echo $res_news['news_lien'] ?>" target="_blank">
ici
</a>
<?
}
?>
</span><span>
Voici le code de mon style :
.tabfd2 {
background-color: #FFFFFF;
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
height: 100px;
display: block;
text-align: left;
vertical-align: top;