Background | SoloLearn: Learn to code for FREE!



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

7/9/2017 7:55:06 PM

Arroudj Abderrahim

2 Answers

New Answer


'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...


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