473,378 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

image declared in xhtml code not showing in safari / konqueror

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

Dec 17 '05 #1
10 2133
Els
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 -
Dec 17 '05 #2
On 2005-12-17, bessington <be***********@gmail.com> 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
Dec 18 '05 #3
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 <be***********@gmail.com> 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


Dec 18 '05 #4
On 2005-12-18, bessington <be***********@gmail.com> 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
Dec 18 '05 #5
On Sat, 17 Dec 2005 20:26:08 -0000, Jasen Betts
<ja***@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.

Dec 18 '05 #6
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
<ja***@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.


Dec 18 '05 #7
Andy Dingley <di*****@codesmiths.com> writes:
Jasen Betts <ja***@free.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*)
--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011
Dec 18 '05 #8
On Sun, 18 Dec 2005 21:08:42 +0100, Eric B. Bednarz
<be*****@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
Dec 19 '05 #9
Andy Dingley <di*****@codesmiths.com> writes:
Eric B. Bednarz <be*****@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)


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
Dec 19 '05 #10
On Mon, 19 Dec 2005 09:42:31 +0100, Eric B. Bednarz
<be*****@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? '?>'


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.
Dec 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: kaeli | last post by:
Hey all, Does anyone know if all the newer browsers support XHTML? My main target is IE6/NN6+(firefox/mozilla/etc), but I'd like to know if Safari, Opera, Konqueror, and other browsers also...
10
by: Rob Fentress | last post by:
I am trying to develop very standards-compliant content using XHTML and CSS. I am using CSS positioning and thus need to only include my stylesheet on browsers I have tested to make sure they...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
1
by: Roger | last post by:
I am trying to capture the image coordinates when a user clicks on an image. My code is working in Firefox, Mozilla, Netscape, IE, and Opera, but fails under Konqueror (and I suspect Safari). ...
3
by: Chris Mahoney | last post by:
Hi I have two machines, one running Win 2000 and VS.NET 2002, and one running Mac OS 10.2. I can develop web apps on my Windows machine, and look at them in IE, and they look fine. But if I...
2
by: Martin Honnen | last post by:
I was playing around with canvas support in recent Safari, Mozilla and Opera (only version 9 preview) but run into issues with Safari related to the very old DOM Level 0 Image object for preloading...
6
by: jesper_lofgren | last post by:
Hi, I wonder if its possible to show and hide a image with javascipt. I want the image to disapear from bottom and up very smooth, maybe under 3-4sec. Is it possible ? any tips ? Thanks
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
3
by: maya | last post by:
www.francesdelrio.com/photoblog_c/section1/page2/photos.jsp right on top and right underneath thumbnails are background-images (the "up" and "down" arrows), but they're not showing in FF on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.