I can apply( in div element ) a background color and How ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I can apply( in div element ) a background color and How ?

30th Jun 2016, 4:12 PM
sagir
sagir - avatar
4 Answers
+ 1
in test.css for example div{ background: red; color: white; }
30th Jun 2016, 9:16 PM
Frank Hijar Pichen
Frank Hijar Pichen - avatar
0
how about background-color ?
18th Jul 2016, 12:21 AM
Ageung Rayi Pamungkas
Ageung Rayi Pamungkas - avatar
0
I think...
22nd Jul 2016, 8:46 AM
Arthur Brüninghaus
Arthur Brüninghaus - avatar
0
There are two ways to apply background color in div element. div { background:red; color:dodgerblue; } or <div style="background-color:red;">Red background </div>
8th Aug 2016, 7:15 PM
Lalit Subba
Lalit Subba - avatar