HighDots Forums  

image declared in xhtml code not showing in safari / konqueror

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


Discuss image declared in xhtml code not showing in safari / konqueror in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bessington
 
Posts: n/a

Default image declared in xhtml code not showing in safari / konqueror - 12-16-2005 , 10:39 PM






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


Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-17-2005 , 04:12 AM






bessington wrote:

Quote:
hey all,
Hello

Quote:
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 -


Reply With Quote
  #3  
Old   
Jasen Betts
 
Posts: n/a

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-18-2005 , 12:17 PM



On 2005-12-18, bessington <bessfernandez (AT) gmail (DOT) com> wrote:
Quote:
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


Reply With Quote
  #4  
Old   
Eric B. Bednarz
 
Posts: n/a

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-18-2005 , 02:08 PM



Andy Dingley <dingbat (AT) codesmiths (DOT) com> writes:

Quote:
Jasen Betts <jasen (AT) free (DOT) net.nospam.nz> wrote:

where is your XML tag

(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*)


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


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

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-18-2005 , 02:13 PM



On Sat, 17 Dec 2005 20:26:08 -0000, Jasen Betts
<jasen (AT) free (DOT) net.nospam.nz> wrote:

Quote:
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.

Quote:
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.



Reply With Quote
  #6  
Old   
bessington
 
Posts: n/a

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-18-2005 , 02:27 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:
Quote:
On Sat, 17 Dec 2005 20:26:08 -0000, Jasen Betts
jasen (AT) free (DOT) 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.


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

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-18-2005 , 06:40 PM



On Sun, 18 Dec 2005 21:08:42 +0100, Eric B. Bednarz
<bednarz (AT) fahr-zur-hoelle (DOT) org> wrote:

Quote:
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


Reply With Quote
  #8  
Old   
Eric B. Bednarz
 
Posts: n/a

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-19-2005 , 02:42 AM



Andy Dingley <dingbat (AT) codesmiths (DOT) com> writes:

Quote:
Eric B. Bednarz <bednarz (AT) fahr-zur-hoelle (DOT) 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)
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>


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


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

Default Re: image declared in xhtml code not showing in safari / konqueror - 12-19-2005 , 06:31 AM



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

Quote:
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? '?>'
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.




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.