This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2005 > image declared in xhtml code not showing in safari / konqueror





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author image declared in xhtml code not showing in safari / konqueror
bessington

2005-12-17, 3: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

Els

2005-12-17, 6: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 -
Jasen Betts

2005-12-17, 10:39 pm

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
bessington

2005-12-18, 3: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.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


Jasen Betts

2005-12-18, 6: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
Andy Dingley

2005-12-18, 6: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.

bessington

2005-12-18, 6: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.


Eric B. Bednarz

2005-12-18, 6: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
Andy Dingley

2005-12-18, 10:36 pm

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
Eric B. Bednarz

2005-12-19, 6:29 am

Andy Dingley <dingbat@codesmiths.com> writes:

> Eric B. Bednarz <bednarz@fahr-zur-hoelle.org> wrote:
>
>
> No, I meant the XML prolog (which wasn't there)


Please get your facts straight.

Prolog

[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
[24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"')
[25] Eq ::= S? '=' S?
[26] VersionNum ::= '1.0'
[27] Misc ::= Comment | PI | S

<http://www.w3.org/TR/REC-xml/#xmldoc>


--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011
Andy Dingley

2005-12-19, 7:06 pm

On Mon, 19 Dec 2005 09:42:31 +0100, Eric B. Bednarz
<bednarz@fahr-zur-hoelle.org> wrote:

>
>Please get your facts straight.
>
> Prolog
>
> [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
> [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'


OK, so the "XML tag" (as Jasen termed it, and I'm assuming what he meant
instead) should strictly be termed the XMLDecl, and is only one
component of the prolog. My mistake, I'd always thought this was the
prolog and the doctypedecl was separate.

So in reply to Jasen
: >where is your XML tag

It (I assume you mean the XMLDecl) isn't needed and it's certainly a bad
idea to use it on the web.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews