CSS/Unità di misura, ereditarietà e box model: differenze tra le versioni
CSS/Unità di misura, ereditarietà e box model (modifica)
Versione delle 03:34, 31 mag 2008
, 15 anni fa→Colori
m (Bot: Aggiungo: de:Websiteentwicklung: CSS: Schriftgröße, en:CSS Programming/Lengths, pl:CSS/Jednostki miary) |
m (→Colori) |
||
=== Colori ===
Un '''colore''' può essere identificato con tre metodi differenti:
*tramite un numero esadecimale che indica le
*tramite la funzione
rgb (
dove <code>rosso</code>, <code>verde</code> e <code>blu</code> sono le componenti RGB del colore espresse con un valore intero da '''0''' a '''255'''.
:*tramite una delle parole chiave predefinite, che sono:
<div style="float:left; width:49%">
*<span style="height:1em; background-color:black; border:1px solid black; "> </span> black - nero
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
</div>
<div style="float:right; width:49%">
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
*<span style="
</div>
<div style="clear:BOTH;">
:*tramite un colore associato alle proprietà di sistema. Ad esempio:
*<span style="width:1em; height:1em; background-color:background; border:1px solid black;"> </span> bakground
*<span style="width:1em; height:1em; background-color:buttonFace; border:1px solid black;"> </span> buttonFace
*<span style="width:1em; height:1em; background-color:buttonTExt; border:1px solid black;"> </span> buttonText
*<span style="width:1em; height:1em; background-color:captionTExt; border:1px solid black;"> </span> captionText
*<span style="width:1em; height:1em; background-color:grayTExt; border:1px solid black;"> </span> grayText
</div>
|