473,233 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 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 13697
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,658 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

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

Similar topics

14
by: Richard Speiss | last post by:
I am trying to display a random background image for a webpage. I found this code to do it <% 'Defines the number of background images you have Const NUMBER_OF_IMAGES = 2 'Initiates the...
3
by: Scott Hatton | last post by:
I have a table like this
5
by: Chandler | last post by:
Hi, I have a div with a background image. The height of the div needs to stretch to accomodate any changes of internal content, but needs to remain at least 400px so that the background image is...
7
by: Dan Nash | last post by:
Hi I'm trying to create an external stylesheet for use in my Web App. It works fine, and I've got it linked and everything. The only problem is the "background-image" property isn't working. ...
8
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in...
2
by: chris_culley | last post by:
Hi there, I've got a gif with (highly) irregular shapes (lots of jigsaw pieces) that I want to map so that each piece is a link... The pieces are currently just a frame drawing, but as they...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
7
by: Paul Wake | last post by:
I'm missing something regarding positioning background images. It's probably obvious, and I hope someone here will note it for me. I'm trying to do something like the complex spiral thing, only...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.