Background Styles in CSS
CSS Backgrounds The CSS background properties are used to define the background effects for elements. In this chapter, you will learn about the following CSS background properties: · background-color · background-image · background-repeat · background-attachment · background-position CSS background-color The background-color property specifies the background color of an element. Example The background color of a page is set like this: body { background-color : lightblue ; } With CSS, a color is most often specified by: a valid color name - like "red" a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" Other Elements You can also set the background color for other elements: Exa...