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 burlywood | Schriftfarbe olivedrab | |||||
Detail | : | Hintergrund burlywood | Detail | : | Schrift olivedrab | |
Farbe | : | burlywood | Farbe | : | olivedrab | |
Farbwert | : | #deb887 | Farbwert | : | #6b8e23 | |
HTML | : | burlywood | HTML | : | olivedrab | |
HTML (Wert) | : | #deb887 | HTML (Wert) | : | #6b8e23 | |
CSS | : | burlywood | CSS | : | olivedrab | |
CSS (Wert) | : | #deb887 | CSS (Wert) | : | #6b8e23 | |
CSS (kürzest) | : | #deb887 | CSS (kürzest) | : | #6b8e23 | |
CSS (RGB) | : | rgb(222,184,135) | CSS (RGB) | : | rgb(107,142,35) | |
CSS (%RGB) | : | rgb(87%,72%,52%) | CSS (%RGB) | : | rgb(41%,55%,13%) |
Verlauf Hintergrundfarbe burlywood nach Schriftfarbe olivedrab | |||||||
#deb887 | #cdb278 | #bdac6a | #aca65c | #9ca04d | #8b9a3f | #7b9431 | #6b8e23 |
#deb887 | #cdb278 | #bdac6a | #aca65c | #9ca04d | #8b9a3f | #7b9431 | #6b8e23 |
Kombination von burlywood und olivedrab | |||||||
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. | olivedrab eignet sich nicht als Schriftfarbe auf Hintergrund burlywood. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit der Farben olivedrab und burlywood beträgt 90.24%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 9.76%. |
Hintergrundfarbe burlywood | Schriftfarbe olivedrab | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#deb887 | #deb887 | #deb887 | #deb887 | #6b8e23 | #6b8e23 | #6b8e23 | #6b8e23 |
#e2c298 | #e2c298 | #be9d73 | #be9d73 | #809e42 | #809e42 | #5b791e | #5b791e |
#e7cca9 | #e7cca9 | #9e8360 | #9e8360 | #95ae61 | #95ae61 | #4c6519 | #4c6519 |
#ecd6ba | #ecd6ba | #7e694d | #7e694d | #aabe81 | #aabe81 | #3d5114 | #3d5114 |
#f0e0cb | #f0e0cb | #5f4e39 | #5f4e39 | #bfcea0 | #bfcea0 | #2d3c0f | #2d3c0f |
#f5eadc | #f5eadc | #3f3426 | #3f3426 | #d4dec0 | #d4dec0 | #1e280a | #1e280a |
#faf4ed | #faf4ed | #1f1a13 | #1f1a13 | #e9eedf | #e9eedf | #0f1405 | #0f1405 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe burlywood auf Farbe olivedrab ändern, wenn man mit der Maus auf <li> zeigt. Wir bereiten zunächst die Formatierung von <li> in Farbe burlywood vor.
In diesem Beispiel legen wir Farbe burlywood als Textfarbe von <li> fest:
<style type="text/css"><!-- li { color: burlywood; } //--> </style>Jetzt fordern wir, dass bei Mausberührung die Textfarbe auf olivedrab gesetzt wird.
<style type="text/css"><!-- li:hover { color:olivedrab; } //--> </style>
Mehr zum Thema li lesen Sie in Listen und Glossare in HTML. Einzelheiten vom hier gezeigten Befehl li erfahren Sie in der HTML Referenz unter <li>.