I don't understand what's wrong with this? I'm watching a tutorial and it seems to work fine on the video but both mozilla and chrome ignore this code and marks it as an invalid property value.
.btn { background-color: #4FB69F url("img/texture.png") no-repeat right top; }
The length specifies the height and width of the background image. Negative values are invalid.
The :invalid selector selects form elements with a value that does not validate according to the element's settings.
border - style is the answer .
change
background-color:
to
background:
Because background
is a shorthand property for
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With