Fred Wilson Fred Wilson - 1 year ago 70
CSS Question

CSS "color" vs. "font-color"

Anyone know why CSS provides

for text, but does not have

Seems very counter-intuitive, kind of like
text-decoration: underline
rather than
or something related to fonts.

Does anyone know why/how the W3C came up with such a wide array of CSS names like this?

Answer Source

I would think that one reason could be that the color is applied to things other than font. For example:

div {
    border: 1px solid;
    color: red;

Yields both a red font color and a red border.

Alternatively, it could just be that the W3C's CSS standards are completely backwards and nonsensical as evidenced elsewhere.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download