|
|
|
Per lo sfondo
| |
Scritto il 10/07/2002
|
background-color:
I valori possibili: [I colori], transparent.
BODY {background-color: yellow} per avere lo sfondo di colore giallo.
TD {background-color: blue} per avere lo sfondo della cella di colore blu.
background-image:
I valori possibili: [uri], none.
BODY {background-image: url(http://percorso/nome.immagine) }
background-repeat:
I valori possibili: repeat, repeat-x, repeat-y, no-repeat.
Questo comando serve per ripetere un immagine per tutto lo sfondo in modo particolare: ripetuto, ripetuto per l'asse x e ripetuto per l'asse y.
BODY {
background: Blue url(Immagine.gif);
background-repeat: repeat-y;
background-position: center;
}
background-attachment
I valori possibili: scroll, fixed.
Lo sfondo puņ rimanere fisso oppure muoversi.
BODY {
background: blue url(immagine.gif);
background-repeat: repeat-x;
background-attachment: fixed;
}
background-position:
I valori possibili: [due valori percentuale tipo "xx% xx%"] oppure le patole chiave [top, center, bottom], [left, center, right]
Alcuni esempi di comandi:
right top | top right - oppure - 100% 0%.
left, left center | center left - oppure -0% 50%
center | center center - oppure - 50% 50%.
right, right center | center right - oppure - 100% 50%.
background:
I valori possibili: [background-color] spazio [background-image] spazio [background-repeat] spazio [background-attachment] spazio [background-position]
P { background: url(immagine.gif) green 50% repeat fixed }
|
|
|
|
|