XHTML and Mozilla problem

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?


<!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>
 
M

Martin Honnen

Adam wrote:

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?


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

Where is the html element, it is missing here, you need to have a root
element
<head>
<title>test title</title>
</head>
<body>

<table "width="100%" cellspacing="0" cellpadding="0" border="1">
^^^^^^^
That doesn't look correct to me.
<tr>
<td><img src="ie.gif" width="300" height="40" /></td>
</tr>
</table>

Consider validating your (X)HTML markup before you post to a newsgroup.
Also as an image is used we really need to see the document in the
browser so post a URL to a test case, then it is possible to understand
what is different in the rendering between browsers and how to remedy that.
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top