Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Re: Making Table Cells display in a certain- order.


Message #1 by "Charles Lyons" <UltimateMSTS@A...> on Sat, 1 Dec 2001 10:28:31
Hello Charles,

> -----Original Message-----
> Subject: Re: Making Table Cells display in a certain-  order.
> From: "Charles Lyons" <UltimateMSTS@A...>
> Date: Sat, 1 Dec 2001 10:28:31
> X-Message-Number: 1
>
> > Just curious: why would you want to do something like this??
>
> I was already using Frames, and IFrames are very similar -
> not suitable
> because of the following reason:
>
> I'm running in a high 1280 x 1024, and I've designed the site to work
> extrememly well in this resolution. The problem with frames
> is that when I
> change the resolution (to account for other users'
> resolutions - namely
> 1024x768), the frames will resize in the IE4 window, causing several
> tabular forms to be 'pushed' onto the next line, and
> therefore, you must
> use the scroll bar to access those items lower down the page.
>
> Therefore, I planned to use tables, which resize themselves
> to fit the
> contents, whilst still maintaining a fixed width & adjust the
> height for
> me. So, no need for pesky scroll bars around.
>
> So, I've reformatted almost every PHP script to accomodate
> for this. The
> table is in this format:
>
>  A |    B
> --------------
>    |
>    |
>  C |    D
>    |
>    |

Have you tried nested tables like so...

<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" ALIGN="CENTER"
WIDTH="640">
 <TR>
  <TD>
   <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"  WIDTH="100%"
VALIGN="TOP">
    <TR>
     <TD WIDTH="140" ALIGN="LEFT"> Section A </TD>
     <TD ALIGN="LEFT" VALIGN="TOP"> Section B </TD>
    </TR>
   </TABLE>
  </TD>
 </TR>
 <TR VALIGN="TOP">
  <TD>
   <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
    <TR>
     <TD WIDTH="140" ALIGN="LEFT" VALIGN="TOP"> Section C </TD>
     <TD ALIGN="LEFT" VALIGN="TOP"> Section D </TD>
    </TR>
   </TABLE>
  </TD>
 </TR>
</TABLE>

I haven't run into this situation before and Netscape still might not handle
it the way you intended but IE should draw the nested tables in order. Let
me know if this works out so I can tuck it away for future reference :)

John


  Return to Index