Search code snippets, questions, articles...

Change font color CSS

The color property can be used to change the color of fonts using CSS. You can pass a value to it in HEX or RGB format
.element {
    color: #ff0000;
}
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place.

You can pass value to color property in RGB format also like below example

.element {
    color: rgb(0,0,0);
}

.element {
    color: rgba(0,0,0,0.7);
}

Search Index Data (The code snippet can also be found with below search text)

color property css
Was this helpful?
0 Comments