Hi,
I am pretty new to open stage control.
I try to resize a picture on, but without success.
If I try this in this order I get no picture:
background: url(mountain.jpg);
background-repeat: no-repeat;
background-size: 300px 100px;
In this order I have a picture but neither size nor repeat is changing anything:
background-repeat: no-repeat;
background-size: 300px 100px;
background: url(mountain.jpg);
Any help is welcome
Greetings
Christian
The background
property is a shorthand for defining all the background-related properties in one declaration (CSS Background Shorthand), that's why it erases your previous declarations. You can use background-image
instead to avoid that.
OK
It works, but is seems, that not all properties can be adjusted as a shorthand command.
only these works:
background-color
background-image
background-repeat
background-attachment
background-position
background-size for eg. needs to be adjusted in a separate line.
Thx a lot
Christian