1
Consider the shorthand background
.
With him, I can do it:
.variable {
background-image: url('image.png');
background-size: 70px 60px;
background-repeat: no-repeat;
background-position: 95% 50%;
}
Works perfectly.
But by using the shorthand background
with its specifications (ex. size
, position
...) with length values (ex. px
and %
) it doesn’t work:
.variable {
background: url('image.png') 70px 60px no-repeat 95% 50%;
}
How to write, inside a shorthand (background
), various length values (70px
60px
90%
50%
) of each specification (size
, position
...)?