2handband Posted October 11, 2011 Report Share Posted October 11, 2011 I've created a background image for the header div in the site I'm creating. Here's the css for the image: .bgimage { background-attachment: fixed; background-image: url (images/marshallWall.png) ; background-repeat: no-repeat; visibility: visible; } And in the html: <div id="header" class="bgimage"> And yes, the image itself is in the proper directory. But the image stubbornly refuses to be visible on the page. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
newseed Posted October 11, 2011 Report Share Posted October 11, 2011 Try removing the space indicated in red: .bgimage { background-attachment: fixed; background-image: urlspace(images/marshallWall.png) ; background-repeat: no-repeat; visibility: visible; } Quote Link to comment Share on other sites More sharing options...
2handband Posted October 11, 2011 Author Report Share Posted October 11, 2011 Try removing the space indicated in red: .bgimage { background-attachment: fixed; background-image: urlspace(images/marshallWall.png) ; background-repeat: no-repeat; visibility: visible; } Well don't I feel like an ass... that did it. Thanks! Quote Link to comment Share on other sites More sharing options...
Dhanishta Posted September 24, 2012 Report Share Posted September 24, 2012 Did you check the "Repeat background" box below the Background Image bit (where the Browse button appears?).It might have appeared hidden behind the frame of your channel layout?or Unless the directory images is a subdirectory of css, you need to use url(../images/background.gif) as the location is relative to the css file. Quote Link to comment Share on other sites More sharing options...
Andrea Posted September 24, 2012 Report Share Posted September 24, 2012 Did you check the "Repeat background" box below the Background Image bit (where the Browse button appears?).It might have appeared hidden behind the frame of your channel layout?or Unless the directory images is a subdirectory of css, you need to use url(../images/background.gif) as the location is relative to the css file. No idea what you mean by 'repeat background box' or 'frame of your channel layout'.... but the OP posted his question almost a year ago, and it appears that the problem was corrected by Eddie within the hour. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.