PDA

View Full Version : [HTML-CSS] Tabella 2x2: mettere sfondo diverso x ogni cella. Si ripete orizzontale!


Matrixbob
21-10-2009, 14:57
... mi si ripete orizzontalmente. :(

http://img36.imageshack.us/img36/1497/immaginem.gif

Questa è la cacchetta che ho scritto :)


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="310" background="img/e11.jpg"><em><strong>
<a href="index.html" title="uomo" target="_self">Uomo</a> - Donna</strong></em></td>
<td width="50%" height="310" background="img/e12.jpg"><em><strong>
Uomo - Donna</strong></em></td>
</tr>
<tr>
<td width="50%" height="310" background="img/e21.jpg"><em>
<strong>Uomo - Donna</strong></em></td>
<td width="50%" height="310" background="img/e22.jpg"><em>
<strong>Uomo - Donna</strong></em></td>
</tr>
</table>

Matrixbob
22-10-2009, 10:43
UP!

Questo screenshot penso sia esaustivo.

http://img8.imageshack.us/img8/7697/repeatf.jpg

Non c'è nessuno che mi sa dire come risolvere l'inconveninte?

FRAgNCESCO
22-10-2009, 13:56
crea un foglio di stile e inserisci queste linee di codice:

td {
background-repeat: no-repeat;
}

oppure lo inserisci direttamente nel tag td e per ogni tag td, come attributo style
<td width="50%" height="310" background="img/e21.jpg" style="background-repeat: no-repeat;">

Matrixbob
22-10-2009, 14:04
crea un foglio di stile e inserisci queste linee di codice:

td {
background-repeat: no-repeat;
}

oppure lo inserisci direttamente nel tag td e per ogni tag td, come attributo style
<td width="50%" height="310" background="img/e21.jpg" style="background-repeat: no-repeat;">

TNX!
Tutte queste cose si ovviano ricorrendo ai CSS vero?

FRAgNCESCO
22-10-2009, 14:06
TNX!
Tutte queste cose si ovviano ricorrendo ai CSS vero?
si :)

Matrixbob
22-10-2009, 14:17
si :)

Dove posso impararli velocemente senza perdermi tra link o libri da 500 pagine? So anche programmare anche se lavorare sui CSS è + da webdesigner o editore o grafico mi sa :)

FRAgNCESCO
22-10-2009, 14:33
Dove posso impararli velocemente senza perdermi tra link o libri da 500 pagine? So anche programmare anche se lavorare sui CSS è + da webdesigner o editore o grafico mi sa :)
html.it ha una buona sezione sui CSS, dai un sguardo là.