AndreasW: was für ein farbformat?

Beitrag lesen

Hallo,

das widerspricht aber meinem Test

#666-->#060606

Odium

Hallo,

das heißt, daß Dein Client fehlerhaft ist.

Die relevante Quelle ist der CSS-Standard.
Hier (http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color) steht:

The format of an RGB value in hexadecimal notation is a '#' immediately followed by either three or six hexadecimal characters. The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros. For example, #fb0 expands to #ffbb00. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display.

In meinen Tests mit IE 5.0, 5.5, 6.0, Mozilla 0.9.6, 0.9.9, 1.0 RC1, Opera 5.11, 6.01 und selbst bei Netscape 4.76 werden die Farben auch korrekt umgesetzt.

Andreas