Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Invalid Property Value?

Tags:

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; }  
like image 631
Manuel Medina Avatar asked Apr 27 '13 04:04

Manuel Medina


People also ask

Which is invalid value for background size property?

The length specifies the height and width of the background image. Negative values are invalid.

What happens in case invalid CSS property is used?

The :invalid selector selects form elements with a value that does not validate according to the element's settings.

Which of the following is an invalid border property?

border - style is the answer .


1 Answers

change

background-color: 

to

background: 

Because background is a shorthand property for

  • background-color
  • background-image
  • background-position
  • background-repeat
  • background-attachment
like image 125
Dipesh Parmar Avatar answered Oct 27 '22 04:10

Dipesh Parmar