Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A little table mystery

    The code below works fine in IE5. But in NS4, it pushes past 100% of screen resolution. If I remove the two tables nested inside the second TD (ie second column), then it works fine in NS4, too. But why? The two nested tables are there to build a vertical rule down the length of the text area. Is there a better way to get this to work in both browsers? Thanks.

    G

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>


    </HEAD>
    <body bgcolor="#ffffff" link="#990000" vlink="#990000" MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0>
    <table border="0" cellpadding="0" cellspacing="0" align="center" width="98%">

    <tr ><td ><IMG src="1pix.gif" alt="" BORDER=0 height="10"></td></tr>
    <tr><td>

    </td>

    <td valign="top" bgcolor="#ffffff">


    <table cellspacing="0" cellpadding="9" border="0"><tr><td valign="top">


    <table align="left" style="border-left: 1px solid #000066;" cellpadding="0" cellspacing="9" ><tr><td>

    <div class="textgebk">

    <p ><i>Everything should be made as simple as possible, but not simpler. Everything should be made as simple as possible, but not simpler. Everything should be made as simple as possible, but not simpler.</i> -- A. Einstein <BR><BR></P>


    </div>

    </td></tr></table>
    </td></tr></table>

    </td>


    <td bgcolor="#FFFFFF" valign="top" width="1%">

    <IMG src="1pix.gif" alt="" BORDER=0 height="10">
    </td>
    <!-- ************** End Right Column ***************** --> </tr>

    </td>
    </tr>
    </table>


    </body>
    </HTML>

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe the div? or the style? who knows.... NS4 was a buggy & deficient HTML interpreter
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Borgtex. But minus the div and minus the style, still no go. NS4 is full of problems, but plenty still use it. I don't mean to encouirage them, but I still would rather develop stuff that works on it too.

    G

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well, I remember reading years ago that NS4 had severe problems with nested tables...a total clunker that you shouldn't be coding for any more than IE3.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Zoobie or not Zoobie... or Zoobie Zoobie zoo....

    That could be it, thnx. Though I would still like to get the vertical line somehow for NS4...

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, it's not the nesting, it's the coding. Your main table looks like this:

    <tr>
    <td></td>
    </tr>

    <tr>
    <td></td>
    <td></td>
    <td></td>
    </tr>

    So you need a colspan="3" in the top row.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Borders!

    When in doubt, set border to 1, i always say; that'll quickly show you where it's going wrong, like that colspan problem of yours (admittedly, i didn't see it... )
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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