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;
}
</style>
<div>
  Hello world
</div>
background-color refresh
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments