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:
background-image: #000 url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
background-image: #000 url('http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg') repeat;
background-image: url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
background: url("http://www.lifecaredirect.com/images/background-patterns/body-bg-36.jpg") repeat;
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
Post a Comment