Why wont' some images display?

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Reaction score
7
Location
CPT
Hi

I am trying to display images on my webpage but for some reason they just aren't working on IE (7), it just displays a red X.

Its not even in an html page. The image is sitting on my apache web server on the root. so it hit

http://apache_server/img.jpg

The image displays in Firefox but not in IE, is there a reason this should happen
 
Are you sure you have your relative paths to root and not to document set up correctly?

I'm not sure what you mean exactly, its a centOS server so the image file is sitting in /var/www/html/ so the path for the image is /var/www/html/img.jpg

This works in Firefox but not in IE
 
I'm not sure what you mean exactly, its a centOS server so the image file is sitting in /var/www/html/ so the path for the image is /var/www/html/img.jpg

This works in Firefox but not in IE

And if you drop the path completely and just make it img.jpg? or if its in a folder /images/img.jpg?
 
Are you sure it's actually a jpeg? Firefox will open a PNG with a .jpg extension for example while IE won't. I've seen it on a few forums where people post screenshots and manage to mess up the extensions.
 
Wow, this actually worked! thanks man, so strange

Cool mate ++ :)

You just need to remember that the root of your site starts after the /html/... so you would never put that part of the path in, only what is relative to your site root (main site folder) ;)
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X