No repeat background ?

Alizea77 Messages postés 27 Statut Membre -  
Alizea77 Messages postés 27 Statut Membre -
Bonjour,

J'ai intégré un image de background dans un tableau html.

Le fond se duplique, je souhaiterais qu'il s'affiche qu'une seule fois, comment faire ?

<table width="100%" border="0" cellpadding="0" cellspacing="0" background="img/nom de l'image">
<tr><td>
lkjslkfjlksdjf
</td></tr>
</table>


Merci
Alizéa

1 réponse

killermano66 Messages postés 249 Statut Membre 41
 
E utilisant une propriété css

.table_exemple {
background-image: url("chemin/de/ton/image") ;
background-repeat: no-repeat ;
width=100%;
cellpadding=0;
cellspacing=0;
}

<table class="table_exemple">
Contenu de ton tableau
</table>

Un petit complément :
https://openweb.eu.org/articles/tableaux_css

A+
4
Alizea77 Messages postés 27 Statut Membre
 
Super merci pour l'info
0