Background image not working

background image wont work in css but will in html
body {
font-size:1.3em;
background-image: url(images.jpg) 50% 5% no-repeat;
}

You’ve used the background shorthand there, so you need to do this instead:

background: url(images.jpg) 50% 5% no-repeat;

Yes, you tried to combine background-image, background-position, and background-repeat all into your background-image rule :). Use the shorthand as Ralph mentioned.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.