Problem with XHTML in Mozilla

Discussion in 'HTML' started by Adam, Aug 1, 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?

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

  2. Adam

    Els Guest

    Adam wrote:

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

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Els, Aug 1, 2005
    #2
    1. Advertising

  3. Adam

    Spartanicus Guest

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


    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.

    --
    Spartanicus
    Spartanicus, Aug 1, 2005
    #3
  4. Adam

    Rincewind Guest

    On Mon, 1 Aug 2005 09:27:15 +0200, Adam wrote:

    > 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.
    Rincewind, Aug 1, 2005
    #4
  5. Adam

    jlbdoc95 Guest

    "Adam" <> wrote in message
    news:dckip0$7qr$...
    > 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

    > 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>
    >
    >
    >
    >
    >
    jlbdoc95, Aug 1, 2005
    #5
  6. In article <dckip0$7qr$>, Adam ()
    dropped a +5 bundle of words...

    > 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}
    </style>


    > <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.
    Noodles Jefferson, Aug 1, 2005
    #6
    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,816
    Toby Inkster
    Feb 22, 2005
  2. Adam
    Replies:
    1
    Views:
    345
    Martin Honnen
    Jul 29, 2005
  3. Replies:
    7
    Views:
    867
  4. chronos3d
    Replies:
    9
    Views:
    761
    Andy Dingley
    Dec 5, 2006
  5. Usha2009
    Replies:
    0
    Views:
    1,118
    Usha2009
    Dec 20, 2009
Loading...

Share This Page