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.
Hintergrundfarbwert #cd853f | Schriftfarbe cornflowerblue | |||||
Detail | : | Hintergrund #cd853f | Detail | : | Schrift cornflowerblue | |
Farbwert | : | #cd853f | Farbe | : | cornflowerblue | |
Farbe | : | peru | Farbwert | : | #6495ed | |
HTML | : | #cd853f | HTML | : | cornflowerblue | |
HTML (Wert) | : | #cd853f | HTML (Wert) | : | #6495ed | |
CSS | : | #cd853f | CSS | : | cornflowerblue | |
CSS (Wert) | : | #cd853f | CSS (Wert) | : | #6495ed | |
CSS (kürzest) | : | #cd853f | CSS (kürzest) | : | #6495ed | |
CSS (RGB) | : | rgb(205,133,63) | CSS (RGB) | : | rgb(100,149,237) | |
CSS (%RGB) | : | rgb(80%,52%,24%) | CSS (%RGB) | : | rgb(39%,58%,92%) |
Verlauf Hintergrundfarbwert #cd853f nach Schriftfarbe cornflowerblue | |||||||
#cd853f | #be8757 | #af8970 | #a08b89 | #918ea2 | #8290bb | #7392d4 | #6495ed |
#cd853f | #be8757 | #af8970 | #a08b89 | #918ea2 | #8290bb | #7392d4 | #6495ed |
Kombination von #cd853f und cornflowerblue | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. | cornflowerblue eignet sich nicht als Schriftfarbe auf Hintergrund #cd853f, da sowohl Helligkeit als auch die Farben zu ähnlich sind. Die Ähnlichkeit der Farben cornflowerblue und #cd853f beträgt 95.21%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 4.79%. |
Hintergrundfarbwert #cd853f | Schriftfarbe cornflowerblue | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#cd853f | #cd853f | #cd853f | #cd853f | #6495ed | #6495ed | #6495ed | #6495ed |
#d4965a | #d4965a | #af7236 | #af7236 | #7aa4ef | #7aa4ef | #557fcb | #557fcb |
#dba775 | #dba775 | #925f2d | #925f2d | #90b3f2 | #90b3f2 | #476aa9 | #476aa9 |
#e2b991 | #e2b991 | #754c24 | #754c24 | #a6c2f4 | #a6c2f4 | #395587 | #395587 |
#e9caac | #e9caac | #57391b | #57391b | #bcd1f7 | #bcd1f7 | #2a3f65 | #2a3f65 |
#f0dcc8 | #f0dcc8 | #3a2612 | #3a2612 | #d2e0f9 | #d2e0f9 | #1c2a43 | #1c2a43 |
#f7ede3 | #f7ede3 | #1d1309 | #1d1309 | #e8effc | #e8effc | #0e1521 | #0e1521 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #cd853f auf Farbe cornflowerblue ändern, wenn man mit der Maus auf <thead> zeigt. Bereiten wir zunächst eine Darstellung von <thead> in Farbwert #cd853f vor.
Hier legen wir Farbwert #cd853f als Textfarbe von <thead> fest. Zwar verändern wir die Hintergrundfarbe nicht, ändern jedoch die Schriftart auf arial:
<style type="text/css"><!-- thead { font-family: arial; color: #cd853f; } //--> </style>Jetzt fordern wir, dass bei Mausberührung die Textfarbe auf cornflowerblue gesetzt wird.
<style type="text/css"><!-- thead: hover { color: cornflowerblue; } //--> </style>
Weiteres zum Thema thead erfahren Sie in Tabellen in HTML. Mehr zum hier genutzten Tag <thead>.