XHTML and Mozilla problem

Adam (archive)

Usenet Archive
Joined
Feb 9, 2000
Messages
262
Reaction score
0
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>
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top