Jammin87 Posted May 16, 2014 Share Posted May 16, 2014 Hi, I'm new to this so apologise if I am doing something dumb. I cannot get my image to display and not sure why. the code is: body {background-color: #404040;background-image: "Images/layer_bg.jpg"; background-repeat: no-repeat center top;} The directory looks like this website name (folder) Images(folder) mbb.css home.html the image I want displayed is obviously in Images. Thanks in advance, Link to comment Share on other sites More sharing options...
Jammin87 Posted May 16, 2014 Author Share Posted May 16, 2014 sorry ignore this I have it now. Link to comment Share on other sites More sharing options...
davej Posted May 16, 2014 Share Posted May 16, 2014 background-image: url("Images/layer_bg.jpg"); Link to comment Share on other sites More sharing options...
Day Posted May 17, 2014 Share Posted May 17, 2014 You've also got the background position values in the background-repeat declaration. background-repeat: no-repeat center top; This should be written out as background-repeat: no-repeat;background-position: center top; or if you'd like to have all of them under one selector you could write them out as body {background: #404040 url('Images/layer_bg.jpg') no-repeat center top;} Link to comment Share on other sites More sharing options...
lovewebdesign Posted May 27, 2014 Share Posted May 27, 2014 Maybe the the background position attribute makes your background image not display properly. Delete this value and to see what will happen. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now