Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





Pages (2): [1] 2 »   Last Thread  Next Thread
Author
Thread Post New Thread   

image declared in xhtml code not showing in safari / konqueror
 

bessington




quote this post edit post

IP Loged report this post

Old Post  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



Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Els




quote this post edit post

IP Loged report this post

Old Post  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 -


Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Jasen Betts




quote this post edit post

IP Loged report this post

Old Post  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


Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

bessington




quote this post edit post

IP Loged report this post

Old Post  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



Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Jasen Betts




quote this post edit post

IP Loged report this post

Old Post  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


Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Andy Dingley




quote this post edit post

IP Loged report this post

Old Post  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.



Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

bessington




quote this post edit post

IP Loged report this post

Old Post  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.



Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Eric B. Bednarz




quote this post edit post

IP Loged report this post

Old Post  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


Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Andy Dingley




quote this post edit post

IP Loged report this post

Old Post  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


Post Follow-Up to this message ]
Re: image declared in xhtml code not showing in safari / konqueror
 

Eric B. Bednarz




quote this post edit post

IP Loged report this post

Old Post  12-19-05 - 11: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 "'" | '"' Version
Num '"')
[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


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 02:15 PM. Post New Thread   
Pages (2): [1] 2 »   Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top