0

Background image

Is there a difference between using background-image:url and background:url ?

14th Jul 2017, 8:17 AM
Игорь Ткач
Игорь Ткач - avatar
2 Antworten
+ 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
14th Jul 2017, 8:24 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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
14th Jul 2017, 8:30 AM
Вап