0
Background image
Is there a difference between using background-image:url and background:url ?
2 Answers
+ 3
background is the short hand way of doing it. It allows you to add the other background-XXX
to the same statement.
https://www.w3schools.com/cssref/css3_pr_background.asp
https://www.w3schools.com/cssref/pr_background-image.asp
https://www.w3schools.com/css/css_background.asp
+ 2
property
1. background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
property
2. background-image: url|none|initial|inherit;
background property can include background-image