0

Css

How is a background color achieved on css

7th Nov 2019, 12:17 AM
Kalesanwo Temitayo
Kalesanwo Temitayo - avatar
3 odpowiedzi
7th Nov 2019, 12:21 AM
Faisal
Faisal - avatar
+ 1
/*selector*/ { background-color: #ffffff; } Or /*selector*/ { background-color: rgba (255, 255, 255, .5); } etc.
7th Nov 2019, 11:51 PM
BALU
BALU - avatar
0
{Bgcolor: colourname;} Or, {background: colourname;} or: {background-color:color name} Make sure that you use the css syntax { : ;} the semicolons and colons are a must! You can use rgb, hsl, rgba or color name to declare the color. If theres no chane then you have probably forgotten the ; between each css property for that selector.
7th Nov 2019, 3:45 PM
Lorecan de Robillard
Lorecan de Robillard - avatar