HighDots Forums  

CSS images will not load

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS images will not load in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marckatsambis@gmail.com
 
Posts: n/a

Default CSS images will not load - 05-08-2007 , 12:53 AM






Hi,

I'm struggling to find answers on the problem I'm having, and I
desperately need some closure

I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won't show.

I checked the actual link, which is correct (e.g '../images/main/
brc.gif'). To make sure I also tried the URL approach (e.g. 'http://
www.redstudio.com.au/client/os/images/main/brc.gif'), which is also
correct, but to no avail.

A friend suggested that I should try placing the image in a DIV as I
had been placing the images inside a class within a cell. This also
did not make any difference.

I have noticed that while testing in Safari, the Activity utility
states that the background images are 'forbidden'. Maybe this is a
clue?

Standard <IMG>'s have also been placed within the document as a test
to see if they load, and these are all visible remotely. So it must
have somehting to do with the CSS.

I've also W3 validated the HTML and CSS and both are 100% OK.

The site/soure can be viewed here:

http://www.redstudio.com/client/os/index.html

http://www.redstudio.com/client/os/css/os.css

Any help would be really appreciated,

Cheers,

Marc


Reply With Quote
  #2  
Old   
Osmo Saarikumpu
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 02:03 AM






marckatsambis (AT) gmail (DOT) com wrote:

Quote:
I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won't show.
The CSS file your page uses does not contain any references to
background images.

Quote:
The site/soure can be viewed here:

http://www.redstudio.com/client/os/index.html
The page asks for:

url("/styles/ns-uc.css");

That seems to be an empty file. Anyway, your page is not referring to it.

HTH,
Osmo


Reply With Quote
  #3  
Old   
Klaus Krtschil
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 07:25 AM



Osmo Saarikumpu schrieb:
Quote:
marckatsambis (AT) gmail (DOT) com wrote:

I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won't show.

The CSS file your page uses does not contain any references to
background images.

The site/soure can be viewed here:

http://www.redstudio.com/client/os/index.html

The page asks for:

url("/styles/ns-uc.css");

http://www.redstudio.com/client/os/css/os.css

That seems to be an empty file. Anyway, your page is not referring to it.

HTH,
Osmo
Additionally, you should clean up your HTML code:

- Set the correct encoding: you are using UTF-8 characters but encoding
is set to iso-8859-1.

- Do not use XHTML style (the trailing / in some HTML elements) while
declaring loose.dtd

- Put the <form> around the table instead in the middle of nowhere

Klaus
--
Linux User #54760
Fingerprint: 890bdbdeaa3ddab07bac87a3115d553a


Reply With Quote
  #4  
Old   
marckatsambis@gmail.com
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 07:49 AM



I'm sorry. I have been pointing to the site... eek!

Try this instead:

http://www.redstudio.com.au/client/os

http://www.redstudio.com.au/client/os/css/os.css


Reply With Quote
  #5  
Old   
marckatsambis@gmail.com
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 08:00 AM



I'm so sorry. I have been pointing to the wrong url... eek!

Try this instead:

http://www.redstudio.com.au/client/os

http://www.redstudio.com.au/client/os/css/os.css


Reply With Quote
  #6  
Old   
Andy Dingley
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 10:04 AM



On 8 May, 13:00, marckatsam... (AT) gmail (DOT) com wrote:

Quote:
Try this instead:

http://www.redstudio.com.au/client/os
<td><img src="images/menu/spacer.gif" width="9" height="1" border="0"
alt="" /></td>

Start again from scratch. (and lose the XHTML)



What's with the 7-handed goatse too? _Not_ a good choice of corporate
clipart there, it's going to get you slahdotted, and for all the wrong
reasons.



Reply With Quote
  #7  
Old   
Osmo Saarikumpu
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 10:30 AM



marckatsambis (AT) gmail (DOT) com wrote:

Quote:
Try this instead:

http://www.redstudio.com.au/client/os
My Webdeveloper toolbar says:

Broken Images - http://www.redstudio.com.au/client/os/

1. http://www.redstudio.com.au/client/o...ain/banner.jpg
2. http://www.redstudio.com.au/client/o...ain/newsrc.gif
3. http://www.redstudio.com.au/client/o...ain/femmod.jpg
4. http://www.redstudio.com.au/client/o...ain/helprc.gif
5. http://www.redstudio.com.au/client/o...s/main/brc.gif

When I ask for the first one I get:

Forbidden
You don't have permission to access /client/os/images/main/femmod.jpg on
this server.

HTH,
Osmo


Reply With Quote
  #8  
Old   
marckatsambis@gmail.com
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 06:48 PM



On May 9, 12:30 am, Osmo Saarikumpu <o... (AT) weppipakki (DOT) com> wrote:
Quote:
marckatsam... (AT) gmail (DOT) com wrote:
Try this instead:

http://www.redstudio.com.au/client/os

My Webdeveloper toolbar says:

Broken Images -http://www.redstudio.com.au/client/os/

1.http://www.redstudio.com.au/client/o...ain/banner.jpg
2.http://www.redstudio.com.au/client/o...ain/newsrc.gif
3.http://www.redstudio.com.au/client/o...ain/femmod.jpg
4.http://www.redstudio.com.au/client/o...ain/helprc.gif
5.http://www.redstudio.com.au/client/o...s/main/brc.gif

When I ask for the first one I get:

Forbidden
You don't have permission to access /client/os/images/main/femmod.jpg on
this server.

HTH,
Osmo
I am getting the forbidden message as well (Through Safari's Activity
utility). But what I don't understand is why the banner image loads
(which is in the same directory as the rest of the images) but the
other css linked files do not.

Is it likely to be a CSS thing? A server thing? Or an HTML encoding
thing?

Thanks,

Marc



Reply With Quote
  #9  
Old   
Andy Dingley
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 08:17 PM



On 8 May 2007 07:04:29 -0700, Andy Dingley <dingbat (AT) codesmiths (DOT) com>
wrote:

Quote:
http://www.redstudio.com.au/client/os

td><img src="images/menu/spacer.gif" width="9" height="1" border="0"
alt="" /></td

Start again from scratch. (and lose the XHTML)

What do you mean when you say lose the XHTML?
The markup is crap. 10-year obsolete single-pixel gif rubbish. Anyone
writing this style of code today ought to be ashamed.

So for the very few cases where XHTML might possibly be of some use,
this isn't one of them. Nor is the guilty coder likely to be a fit
person to be let loose with it.

XHTML on the web is usually bogus. XHTML that still needs trainer wheels
and single pixel gifs is _definitely_ bogus.


Quote:
What's with the 7-handed goatse too? _Not_ a good choice of corporate
clipart there, it's going to get you slahdotted, and for all the wrong
reasons.

As for the stock photo, its just there as a 'filler' at this stage.
Search Wikipedia for "goatse". _Don't_ Google for it, unless you're
ready for a surprise!

Any image that looks remotely like a goatse (Joe Clark's usability book,
even "Meet the Robinsons") is going to be treated with scorn and
derision when the geeks find it.

Quote:
As for slahdotted... what?
Sorry, "slashdotted" Wikipedia knows that one too.



--
Die Gotterspammerung - Junkmail of the Gods


Reply With Quote
  #10  
Old   
dorayme
 
Posts: n/a

Default Re: CSS images will not load - 05-08-2007 , 08:27 PM



In article
<1178633069.208009.223970 (AT) y80g2000hsf (DOT) googlegroups.com>,
Andy Dingley <dingbat (AT) codesmiths (DOT) com> wrote:

Quote:
On 8 May, 13:00, marckatsam... (AT) gmail (DOT) com wrote:

Try this instead:

http://www.redstudio.com.au/client/os

td><img src="images/menu/spacer.gif" width="9" height="1" border="0"
alt="" /></td

Start again from scratch. (and lose the XHTML)



What's with the 7-handed goatse too? _Not_ a good choice of corporate
clipart there, it's going to get you slahdotted, and for all the wrong
reasons.
It particularly annoying for all the nav links to open in
separate windows.

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.