Jump to content
Stef's Coding Community
Sign in to follow this  
rsrwebs

RESOLVED: Background image won't work, size limit?

Recommended Posts

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 by rsrwebs

Share this post


Link to post
Share on other sites

It's a case issue

in your HTML, you have 'body' and in your CSS, it's 'Body' - they are not the same.

Share this post


Link to post
Share on other sites

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. :(

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...