The background color of an element.

      background-color: color | transparent | inherit ;

Color - A color name or hex code
transparent - Make the element see-through
inherit - Inherit from a parent element.

body { background-color: #ff0084; }
.emw3class { background-color: rgb(255,0,0); }

#emw3id { background-color: #00ff00; }

Try it:

This is a sample of text with a CSS background color.

(CSS 1) Browser Support: All major browsers.

“The business of the advertiser is to see that we go about our business with some magic spell or tune or slogan throbbing quietly in the background of our minds” ~ Marshall McLuhan


Background-color - MDN Web Docs.
Background-Attachment - Position of a background image relative to the page.
Background-Image - The background image for an element.
Background-Position - Starting position of a background image.
Background-Repeat - How a background image will be repeated.
background - A shorthand property for the properties above.
Background-Clip - The painting area of the background
color - Text color
Color chooser
opacity - Opacity level for an element.

Copyright © 2013-2017
Some rights reserved