image declared in xhtml code not showing in safari / konqueror
bessington
  12-17-05 - 08:22 AM
hey all,
i'm having a rather bizarre problem.. the image tag i have declared in
my xhtml is not showing in safari / konqueror but showing just fine in
Firefox, IE, Opera... this is a complete mystery and I have been
scouring every book / resource I can find but haven't come up with an
answer. any one have any ideas? all other images in site showing fine -
but they are declared as background images in the css.
the site is: http://www.15minutesofwhat.com
img tag:
<a href="/"><img alt="timer image" src="images/bigtimer2.jpg" /></a>
css declaration:
a img, img {
border:0;
}
and these are the other a tag declarations which shouldn't affect the
image but may have something to do with it I figure -
a:link {
color: #000;
text-decoration: none;
}
a:visited {
color: #333;
border-bottom:1px dotted #ccc;
}
a:hover {
color: #c33;
text-decoration: none;
}
a:active {
color: #000;
border-bottom:1px dotted #ccc;
}
thanks for the help!
-bessington
Re: image declared in xhtml code not showing in safari / konqueror
Els
  12-17-05 - 11:22 AM
bessington wrote:
> hey all,
Hello
> i'm having a rather bizarre problem.. the image tag i have declared in
> my xhtml is not showing in safari / konqueror but showing just fine in
> Firefox, IE, Opera... this is a complete mystery and I have been
> scouring every book / resource I can find but haven't come up with an
> answer. any one have any ideas? all other images in site showing fine -
> but they are declared as background images in the css.
>
> the site is: http://www.15minutesofwhat.com
>
> img tag:
> <a href="/"><img alt="timer image" src="images/bigtimer2.jpg" /></a>
I just did a "eliminate parts of CSS till finding the problem", and
found the problem. You use a text-indent of -9999px on #header. If you
take out that rule, Konqueror shows the image. (don't have Safari to
test with)
Obviously, this makes other browsers do what you don't want (I see
stuff happening to the navbar in FF), but I don't have the time to
figure out why you needed that text-indent in the first place, and I
also don't know of a hack to hide the rule from both Konqueror and
Safari at the same time.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Re: image declared in xhtml code not showing in safari / konqueror
Jasen Betts
  12-18-05 - 03:39 AM
On 2005-12-17, bessington <bessfernandez@XXXXXXXXXX> wrote:
> hey all,
>
> i'm having a rather bizarre problem.. the image tag i have declared in
> my xhtml is not showing in safari / konqueror but showing just fine in
> Firefox, IE, Opera... this is a complete mystery and I have been
> scouring every book / resource I can find but haven't come up with an
> answer. any one have any ideas? all other images in site showing fine -
> but they are declared as background images in the css.
>
> the site is: http://www.15minutesofwhat.com
>
you are not serving XHTML correctly from your server.
jasen@clunker:$ nc www.15minutesofwhat.com 80
GET / HTTP/1.1
Host: www.15minutesofwhat.com
HTTP/1.1 200 OK
Date: Sat, 17 Dec 2005 20:09:29 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a
PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
X-Powered-By: PHP/4.3.10
Transfer-Encoding: chunked
Content-Type: text/html
c59
<!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>
....
your server is giving the wrong Content-Type:... if you want your XHTML to
work as XHTML you must fix that first.
where is your XML tag ... run that page through a validator.
perhaps you should be using HTML instead.
--
Bye.
Jasen
Re: image declared in xhtml code not showing in safari / konqueror
bessington
  12-18-05 - 08:26 AM
jasen,
thanks for the reply. i am a bit stumped as to why my server is giving
the wrong content type but yet still validating as xhtml at the w3
site... any recommendations for validators?
-bessington
Jasen Betts wrote:
> On 2005-12-17, bessington <bessfernandez@XXXXXXXXXX> wrote:
>
> you are not serving XHTML correctly from your server.
> jasen@clunker:$ nc www.15minutesofwhat.com 80
> GET / HTTP/1.1
> Host: www.15minutesofwhat.com
>
> HTTP/1.1 200 OK
> Date: Sat, 17 Dec 2005 20:09:29 GMT
> Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1
a
> PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
> X-Powered-By: PHP/4.3.10
> Transfer-Encoding: chunked
> Content-Type: text/html
>
> c59
> <!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>
>
> ....
>
> your server is giving the wrong Content-Type:... if you want your XHTML to
> work as XHTML you must fix that first.
> where is your XML tag ... run that page through a validator.
>
>
> perhaps you should be using HTML instead.
> --
>
> Bye.
> Jasen
Re: image declared in xhtml code not showing in safari / konqueror
Jasen Betts
  12-18-05 - 11:42 PM
On 2005-12-18, bessington <bessfernandez@XXXXXXXXXX> wrote:
> jasen,
>
> thanks for the reply. i am a bit stumped as to why my server is giving
> the wrong content type but yet still validating as xhtml at the w3
> site...
the w3 site seems to only check the content,,,
check this out.
http://www.w3.org/International/articles/serving-xhtml
that page covers the details. but I must say that I have encountered a
marked difference in browser behavior by serving pages as XHTML+XML
hmm this issue seems to be more complex than I thought...
sorry for messing you around...
Bye.
Jasen
Re: image declared in xhtml code not showing in safari / konqueror
Andy Dingley
  12-18-05 - 11:42 PM
On Sat, 17 Dec 2005 20:26:08 -0000, Jasen Betts
<jasen@free.net.nospam.nz> wrote:
>your server is giving the wrong Content-Type:... if you want your XHTML to
>work as XHTML you must fix that first.
Why would the OP need to do this, and why would they want to anyway ?
XHTML 1.0 can be served as text/html and this is the only current way in
which it's usable on the web. Although it's true what you say about "if
you want it to work as XHTML" there's no need to do that, nor is it a
good thing under the current state of the web.
>where is your XML tag
It (I assume you mean the prolog) isn't needed and it's certainly a bad
idea to use it on the web.
Re: image declared in xhtml code not showing in safari / konqueror
bessington
  12-18-05 - 11:42 PM
thanks.. well if it seems that my content-type and xhtml and correct..
is it still an issue that has to do with text-indent in the parent div?
i am trying to narrow it down to the source but do not have safari to
test against.. if so, is it still possible to display the h1 image
declared in the background image of the css, and display the image in
the img tag in the xhtml in the same div?
-bessington
Andy Dingley wrote:
> On Sat, 17 Dec 2005 20:26:08 -0000, Jasen Betts
> <jasen@free.net.nospam.nz> wrote:
>
>
> Why would the OP need to do this, and why would they want to anyway ?
>
> XHTML 1.0 can be served as text/html and this is the only current way in
> which it's usable on the web. Although it's true what you say about "if
> you want it to work as XHTML" there's no need to do that, nor is it a
> good thing under the current state of the web.
>
>
> It (I assume you mean the prolog) isn't needed and it's certainly a bad
> idea to use it on the web.
Re: image declared in xhtml code not showing in safari / konqueror
Eric B.
Bednarz
  12-18-05 - 11:42 PM
Andy Dingley <dingbat@codesmiths.com> writes:
> Jasen Betts <jasen@free.net.nospam.nz> wrote:
>
> (I assume you mean the prolog)
I assume the netcat utility, though possibly invoked with vague
intentions, had the foresight to reveal all of the prolog, as was
rather verbosely cited in the preceding message.
(*sigh*)
--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011
Re: image declared in xhtml code not showing in safari / konqueror
Andy Dingley
  12-19-05 - 03:36 AM
On Sun, 18 Dec 2005 21:08:42 +0100, Eric B. Bednarz
<bednarz@fahr-zur-hoelle.org> wrote:
>I assume the netcat utility, though possibly invoked with vague
>intentions, had the foresight to reveal all of the prolog, as was
>rather verbosely cited in the preceding message.
No, I meant the XML prolog (which wasn't there), not the headers