0
Css
How is a background color achieved on css
3 Answers
+ 1
/*selector*/ {
background-color: #ffffff;
}
Or
/*selector*/ {
background-color: rgba (255, 255, 255, .5);
}
etc.
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.