XHTML and Mozilla problem

Discussion in 'XML' started by Adam, Jul 29, 2005.

  1. Adam

    Adam Guest

    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>
     
    Adam, Jul 29, 2005
    #1
    1. Advertising

  2. 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
    <html xmlns="http://www.w3.org/1999/xhtml">

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

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jul 29, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henri
    Replies:
    9
    Views:
    1,845
    Toby Inkster
    Feb 22, 2005
  2. Adam
    Replies:
    5
    Views:
    425
    Noodles Jefferson
    Aug 1, 2005
  3. Replies:
    7
    Views:
    900
  4. chronos3d
    Replies:
    9
    Views:
    786
    Andy Dingley
    Dec 5, 2006
  5. Kenn White
    Replies:
    4
    Views:
    181
    David Dorward
    Aug 23, 2004
Loading...

Share This Page