Ciao; Con i css.
Esempio anche cosi' :
Codice PHP:
<html>
<head>
<style type="text/css">
.sfondonorepeat {
background-image: url(img.jpg); /* percorso del background */
background-repeat: no-repeat;
background-position: center; /* scegli la posizione del background */
width: 400px;
height: 500px;
border: 1px solid #000; /* ho messo un bordo giusto per farti vedere l'effetto */
}
</style>
</head>
<body>
<div class="sfondonorepeat">
<td>
</td>
</div>
</body>
</html>
p.s. o assegnare anche la formattazione-tipo direttamente al td ( o eliminare table e td
) :
Se usi la tabella per un layout ti consigliamo (come si dice un po tutti qui
) di evitare e di usare i css per il layout.
Ciao.