473,394 Members | 1,828 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,394 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 13725
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.