Answers for "what is difference between background and background-color"

CSS
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;
Posted by: Guest on October-15-2020

Code answers related to "what is difference between background and background-color"

Browse Popular Code Answers by Language