2handband Posted October 11, 2011 Report 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?
newseed Posted October 11, 2011 Report 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; }
2handband Posted October 11, 2011 Author Report 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!
Dhanishta Posted September 24, 2012 Report 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.
Andrea Posted September 24, 2012 Report 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.
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