how to change Font-color in CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

how to change Font-color in CSS?

I wrote this code in CSS to make the whole body in one style : body { background-color:#333333; font-size:24px; font-family:Times New Roman; font-style:italic ; font-color:#FFFFFF; } everything is ok but the font color still in the default color "black".

6th May 2017, 5:35 AM
‎🎀<Be>🎀‎
‎🎀<Be>🎀‎ - avatar
6 Answers
+ 11
replace font-color with color. color is the attribute you are looking for.
6th May 2017, 5:39 AM
Ashwani Kumar
Ashwani Kumar - avatar
+ 8
Thank you it changed now :)
6th May 2017, 5:41 AM
‎🎀<Be>🎀‎
‎🎀<Be>🎀‎ - avatar
+ 8
checked 👍
6th May 2017, 5:46 AM
‎🎀<Be>🎀‎
‎🎀<Be>🎀‎ - avatar
+ 7
Thank you.
6th May 2017, 5:46 AM
Manual
Manual - avatar
+ 6
It will be " color:blue; " not font-color. "color:#123456" "color:rgb(1,2,3);"
6th May 2017, 5:40 AM
Manual
Manual - avatar
+ 1
do this background:#333; color:#fff;
14th May 2017, 6:21 PM
elmike Gutierrez
elmike Gutierrez - avatar