CSS background-color

The background-color property sets the background color of an element. The color is drawn behind any background images.

Example – background-color

In the following code, CSS property background-color can be changed to the following values
  • lightgray
  • lightblue
  • #888
<style type="text/css">
body {
  background-color: lightgray;
  Hello world
background-color refresh
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments