von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
Netscape führte seinerzeit die websicheren Farben ein. Neben diesen Farbwerten, die einem bestimmten Schema folgen, definierte man noch 120 Werte und ordnete ihnen Namen zu.
Hintergrundfarbe ivory | Schriftfarbwert #e0ffff | |||||
Detail | : | Hintergrund ivory | Detail | : | Schrift #e0ffff | |
Farbe | : | ivory | Farbwert | : | #e0ffff | |
Farbwert | : | #fffff0 | Farbe | : | lightcyan | |
HTML | : | ivory | HTML | : | #e0ffff | |
HTML (Wert) | : | #fffff0 | HTML (Wert) | : | #e0ffff | |
CSS | : | ivory | CSS | : | #e0ffff | |
CSS (Wert) | : | #fffff0 | CSS (Wert) | : | #e0ffff | |
CSS (kürzest) | : | #fffff0 | CSS (kürzest) | : | #e0ffff | |
CSS (RGB) | : | rgb(255,255,240) | CSS (RGB) | : | rgb(224,255,255) | |
CSS (%RGB) | : | rgb(100%,100%,94%) | CSS (%RGB) | : | rgb(87%,100%,100%) |
Verlauf Hintergrundfarbe ivory nach Schriftfarbwert #e0ffff | |||||||
#fffff0 | #fafff2 | #f6fff4 | #f1fff6 | #edfff8 | #e8fffa | #e4fffc | #e0ffff |
#fffff0 | #fafff2 | #f6fff4 | #f1fff6 | #edfff8 | #e8fffa | #e4fffc | #e0ffff |
Kombination von ivory und #e0ffff | |||||||
Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Die Ähnlichkeit der Farben #e0ffff und ivory ergibt sich zu 95.02%. Die Lesbarkeit dieser Farbkombination liegt damit bei 4.98%. #e0ffff eignet sich nicht als Schriftfarbe auf Hintergrund ivory, weil die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbe ivory | Schriftfarbwert #e0ffff | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#fffff0 | #fffff0 | #fffff0 | #fffff0 | #e0ffff | #e0ffff | #e0ffff | #e0ffff |
#fffff2 | #fffff2 | #dadacd | #dadacd | #e4ffff | #e4ffff | #c0dada | #c0dada |
#fffff4 | #fffff4 | #b6b6ab | #b6b6ab | #e8ffff | #e8ffff | #a0b6b6 | #a0b6b6 |
#fffff6 | #fffff6 | #919189 | #919189 | #edffff | #edffff | #809191 | #809191 |
#fffff8 | #fffff8 | #6d6d66 | #6d6d66 | #f1ffff | #f1ffff | #606d6d | #606d6d |
#fffffa | #fffffa | #484844 | #484844 | #f6ffff | #f6ffff | #404848 | #404848 |
#fffffc | #fffffc | #242422 | #242422 | #faffff | #faffff | #202424 | #202424 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe ivory auf Farbwert #e0ffff ändern, wenn man mit der Maus auf <acronym> zeigt. Bereiten wir zunächst die Formatierung von <acronym> in Farbe ivory vor.
In diesem Beispiel legen wir die Textfarbe von <acronym> auf Farbe ivory fest. Die Größe der Schrift ändern wir auf 14pt.
<style type="text/css"><!-- acronym { font-size:14pt; color:ivory; } //--> </style>Jetzt fordern wir, dass bei Hover die Textfarbe auf #e0ffff gesetzt wird.
<style type="text/css"><!-- acronym:hover { color:#e0ffff; } //--> </style>
Beschreibung des hier gezeigten Befehl <acronym>.