rsrwebs Posted May 5, 2011 Report Share Posted May 5, 2011 (edited) So, weird thing happening, I have a background image here: http://www.rsrwebs.com/images/BG.jpg And I embed it using CSS, like I normally do: Body { background-image:url('images/BG.jpg'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; } But for some really strange reason the image won't show up, and even weirder, when I right-click and select "view background image" I get a 404 message. What? The image is right there! The only thing I can guess is because the image is fairly large in dimension its not working for some reason. I've gotten other much smaller images to work in the code I'm using, and I even cropped the width down and it refused to work. Is there some sort of size limit? Thanks to anyone who can help. Edited May 6, 2011 by rsrwebs Quote Link to comment Share on other sites More sharing options...
rsrwebs Posted May 5, 2011 Author Report Share Posted May 5, 2011 Oh, and here's the page I'm trying to get the image to work on: http://www.rsrwebs.com/index.htm The CSS is embedded fine, through a link rel code. Quote Link to comment Share on other sites More sharing options...
Andrea Posted May 5, 2011 Report Share Posted May 5, 2011 It's a case issue in your HTML, you have 'body' and in your CSS, it's 'Body' - they are not the same. Quote Link to comment Share on other sites More sharing options...
rsrwebs Posted May 6, 2011 Author Report Share Posted May 6, 2011 It's a case issue in your HTML, you have 'body' and in your CSS, it's 'Body' - they are not the same. No, that didn't work. Quote Link to comment Share on other sites More sharing options...
Andrea Posted May 6, 2011 Report Share Posted May 6, 2011 That is weird - I copied / pasted your code, and I saw the image even before I lower-cased the 'Body' in CSS: http://aandbwebdesign.com/KSforum/rsr.html Where are you going with the iframe for the header? That seems an odd approach. Quote Link to comment Share on other sites More sharing options...
Andrea Posted May 6, 2011 Report Share Posted May 6, 2011 Instead of iframes, look into PHP includes - that's the better way to achieve what I think you're after. And tables are not meant for layout-even if you're inserting them in a properly designed page. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted May 6, 2011 Report Share Posted May 6, 2011 The background image appears for me when I update the CSS to modify the path to the background image: url("../images/BG.jpg") or url("/images/BG.jpg") Quote Link to comment Share on other sites More sharing options...
Andrea Posted May 6, 2011 Report Share Posted May 6, 2011 The image is here: http://www.rsrwebs.com/images/BG.jpg - The path would explain this one - since his CSS file is in its own folder. DUH - why didn't I think about that??? Quote Link to comment Share on other sites More sharing options...
BeeDev Posted May 6, 2011 Report Share Posted May 6, 2011 Yep, path is wrong. Should be "../images/BG.jpg" So you're making a web design & development company? Quote Link to comment Share on other sites More sharing options...
rsrwebs Posted May 6, 2011 Author Report Share Posted May 6, 2011 Thanks for your guys' help, I knew it had to be something small. 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.