Problem with XHTML in Mozilla

A

Adam

hi!

the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it. Do you have
any ideas how to correct it?

regards
adam


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<head>
<title>test title</title>
</head>
<body>

<table "width="100%" cellspacing="0" cellpadding="0" border="1">
<tr>
<td><img src="ie.gif" width="300" height="40" /></td>
</tr>
</table>

</body>
</html>
 
E

Els

Adam said:
hi!

the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it. Do you have
any ideas how to correct it?

Have you tried validating your code?
 
S

Spartanicus

Adam said:
the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it.

Mozilla is switched into standard compliant mode with the doctype.
Do you have any ideas how to correct it?

[Assuming that the extraneous " is a typo]

img{vertical-align:text-bottom}

Or several other values for the vertical-align property get rid of the
space in Mozilla.
 
R

Rincewind

hi!

the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it. Do you have
any ideas how to correct it?

regards
adam


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<head>
<title>test title</title>
</head>
<body>

<table "width="100%" cellspacing="0" cellpadding="0" border="1">
<tr>
<td><img src="ie.gif" width="300" height="40" /></td>
</tr>
</table>

</body>
</html>


I don't see a line around the picture on IE or FF but there is one around
the Table beacause you've specified one.
 
J

jlbdoc95

Adam said:
hi!

the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it. Do you
have
any ideas how to correct it?

First, as already mentioned, this does not validate, missing opening <HTML>
tag, extra quote before width in the <table> tag and missing the alt
attribute. The border however is coming from the table border, not the
actual image (unless of course the actual image has a border as part of the
..gif).

Doc95
 
N

Noodles Jefferson

Adam ([email protected]) said:
hi!

the code below without the doctype definition works fine in both IE and
Mozilla. if I add the doctype line code works ok in IE but in Mozilla a
black boarder apperas around the picture and I can't remove it. Do you have
any ideas how to correct it?

regards
adam


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<head>
<title>test title</title>
</head>

<style>
img {border:none}
<body>

<table "width="100%" cellspacing="0" cellpadding="0" border="1">
<tr>
<td><img src="ie.gif" width="300" height="40" /></td>
</tr>
</table>

</body>
</html>

--
Noodles Jefferson
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

"Our earth is degenerate in these latter days, bribery and corruption
are common, children no longer obey their parents and the end of the
world is evidently approaching."
--Assyrian clay tablet 2800 B.C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top