html - background-image in css is not working -


what wrong css code below:

body {     background-image: #000 url(http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg) repeat;     color: #898989;     font-family: 'roboto', arial, verdana;     font-weight: 400;     -webkit-font-smoothing: antialiased;     overflow-x: hidden;     font-size:13px;     line-height:21px; } 

have tried following variations still not working:

  1. background-image: #000 url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
  2. background-image: #000 url('http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg') repeat;
  3. background-image: url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
  4. background: url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
  5. background: url(http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg) repeat;

the background-image property takes single argument: url image.

you confusing the background shorthand property, takes list of values , applies them various different full properties (including background-image, background-color , background-repeat).


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -