Background | SoloLearn: Learn to code for FREE!

+1

Background

In CSS, is there a difference between "background", and background-color "?

7/9/2017 7:55:06 PM

Arroudj Abderrahim

2 Answers

New Answer

+4

'background' is a shorthanded property where you can not only set the 'background-color' property, but also 'background-image' as mostly of those 'background-' family properties... https://developer.mozilla.org/en-US/docs/Web/CSS/background

+1

The value of 'background' can also be an image. ( 'url(http://...)' ). The value of 'background-color' can only be a color.