are background and background-color the same code example
Example 1: what is difference between background and background-color
Premising that those are two distinct properties, in your specific example there's no difference in the result, since background actually is a shorthand for
background-color
background-image
background-position
background-repeat
background-attachment
background-clip
background-origin
background-size
background: white url(images/image1.jpg) top left repeat;
background: black;
background: url(example.jpg) no-repeat center center #fff;
background-image: url(example.jpg);
background-position: center center;
background-repeat: no-repeat;
background-color: #fff;
Example 2: css using the same background-color as the parent background
.child {
float: right;
background-color: inherit;
}