Forum Moderators: open

Message Too Old, No Replies

Image Tag not Displaying in Safari / Konqueror

Does this have to do my server is giving the wrong content type?

         

bessington

5:32 am on Dec 18, 2005 (gmt 0)

10+ Year Member



hello everyone,

i'm going through quite the series of difficulties trying to figure out why an img tag declared in my xhtml is not showing in safari / knoqueror. elsewhere, someone posted that my server is giving the wrong content type. yet at w3.org it validates as xhtml. i am stumped to why this is happening and if this is the source of my errors.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Movable Type 3.2" />

<link rel="alternate" type="application/atom+xml" title="Atom" href="http://www.mysite.com/atom.xml" />

any glaring errors to be seen? thank you!

-bessington

Robin_reala

10:13 am on Dec 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Load Firefox, put the image URL directly into the address bar and load it, then go to tools / Page Info and check the type field. This should match whatever the image is (image/png, image/jpeg, image/gif, etc). If it's something else (e.g. text/plain, etc) then yes, the server is sending wrong media type. You'll have to configure it correctly.

bessington

5:22 pm on Dec 18, 2005 (gmt 0)

10+ Year Member



image displays as correct type in firefox.

i'm wondering if the image isn't showing due to a text-indent: -9999px;
in the css for the parent div. this is for an image replacement technique. anyone know of safari / knoqueror having a problem with this?

thank you!

-bessington

encyclo

5:36 pm on Dec 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



someone posted that my server is giving the wrong content type

Was the person referring to the content type for the image or the page itself? There is a fad for serving XHTML with an

application/xhtml+xml
mime type, but it is not recommended - best stick to
text/html
as you almost certainly are already using.

This may be a CSS issue - I believe that the

text-indent
method is supposed to work in Safari and Konqueror (BTW which versions are you testing with?) so there may be a conflict within another rule.

Robin_reala

6:05 pm on Dec 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OT, but 'fad' is a bit harsh. application/xhtml+xml is the future for XHTML - the fact that the major UA around today can't handle it doesn't mean that we shouldn't be thinking about what's coming next.