Jump to content

Recommended Posts

I have on my website a table that is inside another table, now the outer table shows has the banner, nav and main screen. The inner table is showing some stats about the user. The page looks something like this:

 

___________

|    BANNER   |

|    -------   |

|    N |MAIN  |

|    A |MAIN  |

|    V |MAIN  |

|___________|

 

Anyway I need the nav to be exactly the right size becuz the background is a picture that repeats on Y (vertical). The problem is that the inner table sort of pushes the outer one so that the nav background is messed up.

 

Heres the source of the website (it's not so nice becuase it was made in pure PHP and this is what I got from "View Source".

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <html>
    <head>
    <link href="style.css" rel="stylesheet" type="text/css">
    <meta http-equiv="content-type" content="text/html; charset=windows-1250">
    <meta name="generator" content="PSPad editor, www.pspad.com">
    <title></title>
    </head>
    <body bgcolor="#000000">
      <table width="800" align="center" cellspacing="0" cellpadding="0" height="150" background="images/banner.png">
        <tr>
          <td>
          </td>
        </tr>
      </table>
      <table width="800" align="center" cellspacing="0" cellpadding="5">
        <tr><td width="193" background="images/nav2.png" valign="top">
                  <center><b><font color="#EEEEEE">Jackpot: </font><font color="#EE0000">$215</font></b></center><br><div>
                      <img  src="images/bullet.gif">  <a href="game.php" style="font-size: 13px">Home</a></div><div>
                      <img  src="images/bullet.gif">  <a href="recruit.php" style="font-size: 13px">Recruit</a></div><div>
                      <img  src="images/bullet.gif">  <a href="logout.php" style="font-size: 13px">Logout</a></div><div>
                      <img  src="images/bullet.gif">  <a href="news.php" style="font-size: 13px">News</a></div><div>
                      <img  src="images/bullet.gif">  <a href="rules.php" style="font-size: 13px">Rules</a></div><div>
                      <img  src="images/bullet.gif">  <a href="guide.php" style="font-size: 13px">Guide</a></div><div>
                      <img  src="images/bullet.gif">  <a href="forums.php" style="font-size: 13px">Forums</a></div><br>
                </td>
                <td class="main" width="600" align="left" valign="top">
<center><h1>Home</h1></center><br>
<center><h3>You have <font color="#EE0000">378</font> turns.</h3></center><br>
Welcome to the members only page!<br><br>
<!-- it starts here! -->
<table align="center" class="footer" width="99%" broder="0" cellspacing="0" cellpadding="0"><tr><td align="center" height="30" width="25%">Money</td><td align="center" width="25%">Wine</td><td align="center" width="25%">Winers</td><td align="center" width="25%">Merchants</td></tr><tr><td align="center" height="30"><font color="#EE0000">$100,000</font></td><td align="center"><font color="#EE0000">252,603</font></td><td align="center"><font color="#EE0000">1,112</font></td><td align="center"><font color="#EE0000">907</font></td></tr><tr><td align="center" height="30">Networth</td><td align="center">Meat</td><td align="center">Hunters</td><td align="center">Lenders</td></tr><tr><td align="center" height="30"><font color="#EE0000">$39,110,225</font></td><td align="center"><font color="#EE0000">1,000</font></td><td align="center"><font color="#EE0000">2,739</font></td><td align="center"><font color="#EE0000">3,242</font></td></tr></table></td>
        </tr>
        <tr height="1">
          <td bgcolor="#ABABAB" height="1">
          </td>
          <td bgcolor="#000000">
          </td>
        </tr>
      </table>
    </body>
  </html>

Link to comment
https://forums.phpfreaks.com/topic/83136-messed-up-tables/
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.