You have defined 189px which is taking backgound-position
.
The css rule for background
background: background-color background-image background-repeat background-attachment background-position;
There is not inline property for background-size
. Because background-size
was introduced late in css3.
So you can define with background-position
/ background-size
.
background: background-color background-image background-repeat background-attachment background-position/background-size;
Or it's better to use: background-size
below after background property.
background: background-color background-image background-repeat background-attachment background-position;
background-size: width height; // Yes in background-size first one is width and 2nd is height
example:
background: url('image.png') no-repeat right center/14px;
or
background: url('image.png') no-repeat;
background-position: right center;
background-size:14px;
.button {
background: url('https://cdn4.iconfinder.com/data/icons/ionicons/512/icon-arrow-right-b-128.png') no-repeat right center/14px;
background-color: #ff5c36; /* цвет кнопке*/
color: #ffffff; /* цвет текста в кнопке*/
width: 100px;
}
<input class="button" type="button" value="Send">