Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: Netscape vs. IE

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Posts
    2

    Netscape vs. IE

    Hi,

    Does anyone know why with IE both of my tables below display fine, but with Netscape only Table 1 displays OK? The only difference with Table 2 is that I have nested my inline tables in a parent table. But as you can see, I've lost my fraction bars in the second table.

    I've searched everywhere on the web, and I've seen that Netscape can be quirky, but I can't seem to find a fix.

    Thanks!
    :)

    *********************

    <HTML>
    <HEAD>
    <BODY>
    <H1>Table 1</H1>

    <TABLE STYLE = 'display:inline' CELLPADDING = 0 CELLSPACING = 0 >
    <TR><TD HEIGHT = 20>1</TD></TR>
    <TR><TD HEIGHT = 1 BGCOLOR = 'BLACK'></TD></TR>
    <TR><TD HEIGHT = 20>3</TD></TR>
    </TABLE>

    <TABLE STYLE = 'display:inline' CELLPADDING = 0 CELLSPACING = 0 >
    <TR><TD HEIGHT = 20>1</TD></TR>
    <TR><TD HEIGHT = 1 BGCOLOR = 'BLACK'></TD></TR>
    <TR><TD HEIGHT = 20>3</TD></TR>
    </TABLE>

    <H1>Table 2</H1>

    <TABLE>
    <TR>
    <TD>
    <TABLE STYLE = 'display:inline' CELLPADDING = 0 CELLSPACING = 0 >
    <TR><TD HEIGHT = 20>1</TD></TR>
    <TR><TD HEIGHT = 1 BGCOLOR = 'BLACK'></TD></TR>
    <TR><TD HEIGHT = 20>4</TD></TR>
    </TABLE>

    <TABLE STYLE = 'display:inline' CELLPADDING = 0 CELLSPACING = 0 >
    <TR><TD HEIGHT = 20>1</TD></TR>
    <TR><TD HEIGHT = 1 BGCOLOR = 'BLACK'></TD></TR>
    <TR><TD HEIGHT = 20>4</TD></TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

  2. #2
    Junior Member
    Join Date
    Jan 2005
    Posts
    12
    What version of Netscape are you referring to? There is a list of problems with that style definition at the bottom of this page.

    You would also most likely run into a lot less problems now and in the future if you started writing valid XHTML. It's not much different than what you do now, but it is formatted better.

    For instance the tags shouldn't be in caps. <table> should be used instead of <TABLE>

    And all quotes around values should be double quotes. So " not '.

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    2
    I'm using NN 7.0.

    It looks like Netscape does something strange and makes child tables inherit certain style properties of parent tables, and furthermore forbids the designer from overriding those inheritances. If that's the case, that's pretty disappointing...!!

  4. #4
    Junior Member
    Join Date
    Jan 2005
    Posts
    12
    Well the good news is that no one uses Netscape 7. Why don't you test in Mozilla or Firefox instead?

  5. #5
    WebProWorld MVP Webnauts's Avatar
    Join Date
    Aug 2003
    Location
    European Community
    Posts
    9,028
    If the code source above was the code of your whole page, consider the following suggestions:

    1. The "HEAD" tag must have an end tag but the end tag was not found.

    2. The "BODY" tag was found, but it is not valid due to where it is used. This element may be contained in "html" and "noframes". This element may not be contained in "frameset" and "head". The tag is currently contained within an element that may not contain it.

    3. Text is contained in a "head" tag. Any contained text in this tag must be contained in a "title" element.

    4. The end tag for "HEAD" (opened in line 2) should appear before the end tag for "HTML" (nesting error).

    5. A document type declaration should appear as the first line (line 1) of every HTML document.

    For example, for HTML 4.01 Strict documents, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> should be the first line.

    For HTML 4.01 Transitional documents, the first line should be <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">.

    For HTML 4.01 Frameset documents, the first line should be <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">.

    6. An "html" section was found but it did not contain a "frameset" or "body" section. You should include one of these sections.

    7. The "style" attribute has been used but a default style sheet language has not been defined (note that HTML Validator would not see this declaration if it is sent as an HTTP header by a web server).
    HTML 4.01 and XHTML require this for valid documents.

    For example, include this in the "head" section of your document to specify "text/css" as the default style sheet language: <meta http-equiv="Content-Style-Type" content="text/css">. See http://www.w3.org/TR/html4/present/s...#default-style

  6. #6
    Senior Member
    Join Date
    Apr 2004
    Posts
    239
    Also, because of the lack of a DocType declaration, NN 7.0 is probably switching to Quirks Mode, which causes it to revert to non-standard display quirks of earlier versions of NN.

Similar Threads

  1. Advice about Netscape
    By Char1y in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 03-21-2009, 09:52 AM
  2. Digg 1, Netscape 0
    By dutter in forum Insider Reports
    Replies: 0
    Last Post: 07-27-2006, 12:06 PM
  3. CSS problem in Netscape 7.1
    By holmpage in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 03-29-2006, 08:47 PM
  4. Netscape Compatible
    By ajpaulus in forum Flash Discussion Forum
    Replies: 2
    Last Post: 05-25-2005, 10:13 AM
  5. Netscape 7.2
    By richkoi in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 08-04-2004, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •