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 4 of 4
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    Tables not being aligned correctly??

    hello,
    I'm working on editing some templates that later get parsed by php for a site i'm doing.


    on this page i have 4 tables in a row going down.
    <table>
    (space)
    <table>
    (space)

    and so on.

    my problem is that for some reason all the tables are coming up beside ( to the right ) each other insted of under one another.

    I'm not sure what this is happening, and was hoping that someone here might know what is going on?


    thanks in advance for your time!
    -Ken

  • #2
    New Coder
    Join Date
    Apr 2005
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you post your code?

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    yah i can, a bit of a code dump, but here goes:

    PHP Code:

    <html>
    <
    head>
        <
    title>__page_header__</title>
        <
    META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
        <
    link href="templates/tmpl_dlt/styles_dlt.css" rel=stylesheet type=text/css>
        <
    script src="inc/js/functions.js" type="text/javascript" language="javascript"></script>

    <script language="JavaScript">
    <!--

        tmi_active=new Image;
        tmi_active.src = "templates/tmpl_dlt/images_dlt/active.gif";

        function inCell(cell, newcolor) 
        {
            if (!cell.contains(event.fromElement)) 
            {
            cell.bgColor = newcolor;
            }
        }

        function outCell(cell, newcolor) 
        {
            if (!cell.contains(event.toElement)) 
            {
                cell.bgColor = newcolor;
            }
        }

    //-->
    </script>

    </head>

    <body topmargin=2 leftmargin=0 rightmargin=0>
    __up_inc_js__
        <TABLE CELLPADDING=0 CELLSPACING=2 width=780 align=left>
        <tr>
            <td></td>
            <td width=565 height=6>
                <table width=100% cellpadding=0 cellspacing=0>
                <tr><td colspan=4></td><td colspan=6 height=6 align=right></td></tr>
                <tr>
                    <td background=templates/tmpl_dlt/images_dlt/button1.gif width=112 height=24>


                    <table width=100% cellpadding=0 cellspacing=0 class=menu>
                    <tr>
                        <td width=99>&nbsp;&nbsp;&nbsp;&nbsp;__TMI_Join__</td>
                    <td width=13 valign=top><img src=templates/tmpl_dlt/images_dlt/passive.gif width=13 height=15 name=Image1></td>
                    </tr>
                    </table>


                    </td>
                    <td width=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td>
                    <td background=templates/tmpl_dlt/images_dlt/button.gif width=112 height=24>



                    <table width=100% cellpadding=0 cellspacing=0 class=menu>
                    <tr>
                    <td width=99>&nbsp;&nbsp;&nbsp;&nbsp;__TMI_Login__</td>
                    <td width=13 valign=top><img src=templates/tmpl_dlt/images_dlt/passive.gif width=13 height=15 name=Image2></td>
                    </tr>
                    </table>

                    </td>
                    <td width=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td>
                    <td background=templates/tmpl_dlt/images_dlt/button.gif width=112 height=24>


                    <table width=100% cellpadding=0 cellspacing=0 class=menu>
                    <tr>
                        <td width=99>&nbsp;&nbsp;&nbsp;&nbsp;__TMI_Search__</td>
                    <td width=13 valign=top><img src=templates/tmpl_dlt/images_dlt/passive.gif width=13 height=15 name=Image3></td>
                    </tr>
                    </table>


                    </td>
                    <td width=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td>
                    <td background=templates/tmpl_dlt/images_dlt/button.gif width=112 height=24>


                    <table width=100% cellpadding=0 cellspacing=0 class=menu>
                    <tr>
                        <td width=99>&nbsp;&nbsp;&nbsp;&nbsp;__TMI_Rate__</td>
                    <td width=13 valign=top><img src=templates/tmpl_dlt/images_dlt/passive.gif width=13 height=15 name=Image4></td>
                    </tr>
                    </table>

                    </td>
                    <td width=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td>
                    <td background=templates/tmpl_dlt/images_dlt/button.gif width=112 height=24>


                    <table width=100% cellpadding=0 cellspacing=0 class=menu>
                    <tr>
                        <td width=99>&nbsp;&nbsp;&nbsp;&nbsp;__TMI_Chat__</td>
                    <td width=13 valign=top><img src=templates/tmpl_dlt/images_dlt/passive.gif width=13 height=15 name=Image5></td>
                    </tr>
                    </table>


                    </td>
                    <td width=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td>

                </tr>
                </table>

            </td>
        </tr>

        <tr>
            <td valign=top>
                <table width=100% cellpadding=0 cellspacing=0>
                    <tr><td background=templates/tmpl_dlt/images_dlt/red_small.gif width=184 height=22><h2><i>&nbsp;&nbsp;__quick_search_text__</i></h2></td></tr>
                    <tr><td height=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td></tr>
                    <tr><td bgcolor=#FFFFFF align=center valign=top height=240>

                        __quick_search3__ 

                    </td></tr>
                    <tr><td><img src=templates/tmpl_dlt/images_dlt/white_small.gif width=187 height=10></td></tr>
                </table>
            </td>
            <td valign=top>

                <table width=100% cellpadding=0 cellspacing=0 border=0>
                    <tr><td background=templates/tmpl_dlt/images_dlt/red_big.gif width=565 height=22><h2><i>&nbsp;&nbsp;__promo_text_ae3_1__</i></h2></td></tr>
                    <tr><td height=1><img src=templates/tmpl_dlt/images_dlt/spacer.gif width=1 height=1></td></tr>
                    <tr>
                        <td bgcolor=white height=180 valign=top align=center>
                            

                            <!-- CONTENT [ BEGIN ] -->
    <table cellspacing=0 cellpadding=0>
    <td bgcolor=white width=253 height=240>&nbsp;&nbsp;<img src=templates/tmpl_dlt/images_dlt/heading.gif width=231 height=140><br><br>&nbsp;&nbsp;<a href="join_form.php"><img src=templates/tmpl_dlt/images_dlt/join.gif border=0 alt="Sign up now for FREE" width=190 height=43></a></td>
    <td bgcolor=white width=312><img src=templates/tmpl_dlt/images_dlt/image.jpg width=312 height=202></td>
    </table>

                            <!-- CONTENT [ END ] -->


                        </td>
                    </tr>
                    <tr><td><img src=templates/tmpl_dlt/images_dlt/white_big.gif width=565 height=10></td></tr>
                </table>
            </td>
        </tr>
        <tr><td colspan=2>
        

        
        
        </td></tr>
        
        
    <tr><td colspan=2>

    <!--Start member info table-->

        <TABLE cellspacing=0 cellpadding=0 width=780 align=center height=300 class=text>
        <TD WIDTH=187 VALIGN=TOP>
            __members_statistic__
        </TD>
        <TD><IMG SRC=templates/tmpl_dlt/images_dlt/spacer.gif WIDTH=2></TD>
        <TD WIDTH=187 VALIGN=TOP>
            __latest_news__
        </TD>
        <TD><IMG SRC=templates/tmpl_dlt/images_dlt/spacer.gif WIDTH=2></TD>
        <TD WIDTH=187 VALIGN=TOP>
            __survey__
        </TD>
        <TD><IMG SRC=templates/tmpl_dlt/images_dlt/spacer.gif WIDTH=2></TD>
        <TD WIDTH=187 VALIGN=TOP>
            __success_story__
        </TD>
        </TABLE>
    <!--end member info table-->

    </td></tr>

    <tr><td colspan=2>

    <!--Start footer table-->
        <TABLE cellspacing=0 cellpadding=0 width=780 align=center>

        <TR><TD COLSPAN=2><IMG SRC=templates/tmpl_dlt/images_dlt/spacer.gif height=2></TD></TR>

        <TR>
        <TD width=11><IMG src=templates/tmpl_dlt/images_dlt/bottom_left.gif></TD>
        <TD width=743 bgcolor=#5A5D6B class=bottommenu align=right>
    __BMI_About__ |
    __BMI_Privacy__ | 
    __BMI_Termsofuse__ |
    __BMI_Services__ | 
    __BMI_FAQ__ | 
    __BMI_Articles__ | 
    __BMI_Stories__ |
    __BMI_Links__ | 
    __BMI_Invitefriend__ |
    __BMI_Aff__ |
    __BMI_Contacts__
    &nbsp;
        </TD>
        </TR>
        <TR>
        <TD colspan=2><div align=center class=text style="color: #5A5D6B;">__bottom_text__</div></TD>
        </TR>
        </TABLE>
    <!--End footer table-->

    </td></tr>
        </TABLE>
        
        
        <!--Start login table-->
        <TABLE cellspacing=0 cellpadding=0 width=780 align=left>
        <TR>
        <TD align=left background=templates/tmpl_dlt/images_dlt/fat_line.gif height=44>
        
         <table border=0 class=small cellpadding=0 cellspacing=0>
         <form action=member.php method=post>
         <tr>
         <td rowspan=2><h3>&nbsp;&nbsp;__MEMBER_LOGIN__&nbsp;&nbsp;<h3></td>
         <td style="color: white">__login__</td>
         <td style="color: white">&nbsp;&nbsp;__passwd__</td>
         <td rowspan=2><input type=image src=templates/tmpl_dlt/images_dlt/go.gif width=41 height=41 border=0></td>
         </tr>
         <tr>
         <td><input type="text" size=14 class=no name=ID></td>
         <td>&nbsp;&nbsp;<input type="password" size=12 class=text name=Password>&nbsp;</td>
         </tr>
         </form>
         </table>

        </TD>
        </TR>

        <TR><TD><IMG SRC=templates/tmpl_dlt/images_dlt/spacer.gif height=2></TD></TR>
        
        </TABLE>
        <!--End login table-->
    <p>&nbsp;</p>


    </body></html> 

    if you copy this into dreamweaver, or whatever you use, you should see what i'm talking about. i end up having to use lots of <br /> to get it to move down into place. but i don't understand why it is happening in the first place..

    thanks again for your time!
    -Ken

  • #4
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    you'll notice at the buttom of the page/code u will see <!--Start login table--> ,

    should show up as the last table at the buttom, but doesn't, insted comes out on the top/right hand side.

    -Ken


  •  

    Posting Permissions

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