|
Posted by Animesh K on 11/01/07 19:47
Harlan Messinger wrote:
> Reshma wrote:
>> Hello:
>>
>> I am new to HTML and CSS. I came across this block of code, .link{
>> color:#269;
>> display:block;
>> margin:4px 0 0 0;
>> padding:2px 1em;
>> }
>>
>> I am wondering what is the equivalent hex code for the color:#269 in
>> the above.
>
> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> #xxyyzz. So, #226699.
Correct. Also, you can use common colors by name (typically helps in
visualizing better).
For example:
"color: black;" or "color: white;" are valid CSS properties. Modern
browsers support more such named-colors than what is officially endorsed
by W3C.
http://www.w3.org/TR/CSS21/syndata.html#color-units
Have fun,
Animesh
Navigation:
[Reply to this message]
|