0

Shorthand property of background

When using the shorthand property for background in css is it necessary to be strict to the order of the values? In w3schools.com they say u have but i tried my own in a different order and it worked . I am confused

2nd Jul 2019, 11:05 AM
Majd Alkwaja
Majd Alkwaja - avatar
3 ответов
0
You have to, since some of the properties have same words.
2nd Jul 2019, 11:07 AM
Calviղ
Calviղ - avatar
0
but why it worked with me
2nd Jul 2019, 11:11 AM
Majd Alkwaja
Majd Alkwaja - avatar
0
Background size must be after background position with char /
2nd Jul 2019, 11:26 AM
Calviղ
Calviղ - avatar