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 #fa8072 | Schriftfarbe thistle | |||||
Detail | : | Hintergrund #fa8072 | Detail | : | Schrift thistle | |
Farbwert | : | #fa8072 | Farbe | : | thistle | |
Farbe | : | salmon | Farbwert | : | #d8bfd8 | |
HTML | : | #fa8072 | HTML | : | thistle | |
HTML (Wert) | : | #fa8072 | HTML (Wert) | : | #d8bfd8 | |
CSS | : | #fa8072 | CSS | : | thistle | |
CSS (Wert) | : | #fa8072 | CSS (Wert) | : | #d8bfd8 | |
CSS (kürzest) | : | #fa8072 | CSS (kürzest) | : | #d8bfd8 | |
CSS (RGB) | : | rgb(250,128,114) | CSS (RGB) | : | rgb(216,191,216) | |
CSS (%RGB) | : | rgb(98%,50%,44%) | CSS (%RGB) | : | rgb(84%,74%,84%) |
Verlauf Hintergrundfarbwert #fa8072 nach Schriftfarbe thistle | |||||||
#fa8072 | #f58980 | #f0928f | #eb9b9d | #e6a4ac | #e1adba | #dcb6c9 | #d8bfd8 |
#fa8072 | #f58980 | #f0928f | #eb9b9d | #e6a4ac | #e1adba | #dcb6c9 | #d8bfd8 |
Kombination von #fa8072 und thistle | |||||||
Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von thistle und #fa8072 ergibt sich zu 92.99%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 7.01%. thistle eignet sich nicht als Schriftfarbe auf Hintergrund #fa8072, da die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbwert #fa8072 | Schriftfarbe thistle | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#fa8072 | #fa8072 | #fa8072 | #fa8072 | #d8bfd8 | #d8bfd8 | #d8bfd8 | #d8bfd8 |
#fa9286 | #fa9286 | #d66d61 | #d66d61 | #ddc8dd | #ddc8dd | #b9a3b9 | #b9a3b9 |
#fba49a | #fba49a | #b25b51 | #b25b51 | #e3d1e3 | #e3d1e3 | #9a889a | #9a889a |
#fcb6ae | #fcb6ae | #8e4941 | #8e4941 | #e8dae8 | #e8dae8 | #7b6d7b | #7b6d7b |
#fcc8c2 | #fcc8c2 | #6b3630 | #6b3630 | #eee3ee | #eee3ee | #5c515c | #5c515c |
#fddad6 | #fddad6 | #472420 | #472420 | #f3ecf3 | #f3ecf3 | #3d363d | #3d363d |
#feecea | #feecea | #231210 | #231210 | #f9f5f9 | #f9f5f9 | #1e1b1e | #1e1b1e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #fa8072 auf Farbe thistle ändern, wenn man mit der Maus auf <button> zeigt. Wir bereiten zunächst eine Formatierung von <button> in Farbwert #fa8072 vor.
Z.B. setzen wir bei <button> die Textfarbe auf Farbwert #fa8072. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- button { font-size:13px; color:#fa8072; } //--> </style>Nun fordern wir, dass sich bei Hover die Textfarbe zu thistle ändert.
<style type="text/css"><!-- button:hover { color:thistle; } //--> </style>
Mehr zum Thema button können Sie in Formulare in HTML lesen. Weiteres zum Befehl <button>.