Andrew Grimm Andrew Grimm - 1 year ago 110
CSS Question

Standardized way of graying out normal HTML text

Is there a standardized way of graying (greying) out text that is meant to be ignored, either in HTML, or bootstrap?

I tried looking at both how Slack styles the "(edited)" text, and how Twitter itself ( styles timestamps, and it seems they just change the font color. It just seems strange to me that an arbitrary font color is chosen without any semantic information is attached to it, or even a standardized shade of gray.

The bootstrap documentation mentions some semantic colors, but gray isn't included in them - gray is only mentioned in grayscale.

Ctc Ctc
Answer Source

There is actually a standard way to do it, in bootstrap, which is to use to use text-muted.

In fact, there is a list of standard text shades and colors that are applied directly.

As for HTML, having a CSS with a disabled class and applying that to any of your text would be a better option.

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