471,570 Members | 902 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

External CSS background image not showing up

Hello,

New here and having some difficulty getting a back ground image to appear in my html when called from an external CSS. I am working on OS 10.2.something with Dreamweaver 8.

I have gone through this forum and tried all the suggestions which seemed applicable. Nothing is working. What is weird is that, it worked about four days ago when the site I made went live. Now the client wanted a few changes, and, though the code is all still there and I have changed nothing, it's as if the CSS won't recognize the image it recognized before and nothing is transferring over to the page itself. This has happened across the board on each and every page. I am so frustrated, I could scream. Began a test site to see if my code was tweaked and I just couldn't see it. A different background image loaded on the test site without a single problem. Here's my CSS:

Expand|Select|Wrap|Line Numbers
  1. body {
  2. background-image: url(images/6P-CSS-BG.jpg) ; 
  3. background-color:#000000;
  4. background-repeat: no-repeat;
  5. font-size:10px;
  6. font-color: #000000;
  7. font-family:Verdana, Arial, Helvetica, sans-serif;
  8. }
Here's the linkref in html:

Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" type="text/css"
  2. href="../../6p.css"/>
I get no error codes, but nothing is happening. Is this a problem with the software or is there just something I can no longer see because I have worked on it for way too long?

Thanks,
Rachel
Sep 13 '07 #1
4 13576
improvcornartist
303 Expert 100+
Other than the image, does the CSS work?
Sep 13 '07 #2
Death Slaught
1,137 1GB
Hello,

New here and having some difficulty getting a back ground image to appear in my html when called from an external CSS. I am working on OS 10.2.something with Dreamweaver 8.

I have gone through this forum and tried all the suggestions which seemed applicable. Nothing is working. What is weird is that, it worked about four days ago when the site I made went live. Now the client wanted a few changes, and, though the code is all still there and I have changed nothing, it's as if the CSS won't recognize the image it recognized before and nothing is transferring over to the page itself. This has happened across the board on each and every page. I am so frustrated, I could scream. Began a test site to see if my code was tweaked and I just couldn't see it. A different background image loaded on the test site without a single problem. Here's my CSS:

body {
background-image: url(images/6P-CSS-BG.jpg) ;
background-color:#000000;
background-repeat: no-repeat;
font-size:10px;
font-color: #000000;
font-family:Verdana, Arial, Helvetica, sans-serif;
}

Here's the linkref in html:

<link rel="stylesheet" type="text/css"
href="../../6p.css"/>

I get no error codes, but nothing is happening. Is this a problem with the software or is there just something I can no longer see because I have worked on it for way too long?

Thanks,
Rachel
For starters your: "url(images/6P-CSS-BG.jpg) ; " should be:

Expand|Select|Wrap|Line Numbers
  1. url("images/6p-CSS-BG.jpg");
also in your "link rel" ( this isnt really a problem it just bugs me ) you should have a space between your end " and your forward slash / like this:

Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" type="text/css"
  2. href="../../6p.css" />
Hope it helps, Death
Sep 13 '07 #3
buggs
1
you have to make sure your image URL is relative, for example "../images/background-006.gif"
Sep 29 '08 #4
Dormilich
8,656 Expert Mod 8TB
you have to make sure your image URL is relative, for example "../images/background-006.gif"
I had no problems, when I used absolute paths...
Sep 30 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by Richard Speiss | last post: by
3 posts views Thread by Scott Hatton | last post: by
7 posts views Thread by Dan Nash | last post: by
2 posts views Thread by chris_culley | last post: by
8 posts views Thread by =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post: by
7 posts views Thread by Paul Wake | last post: by
5 posts views Thread by althafexcel | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.