moon 111 Posted December 25, 2007 Share Posted December 25, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/83136-messed-up-tables/ Share on other sites More sharing options...
947740 Posted April 11, 2008 Share Posted April 11, 2008 Tables automatically have a border, whether it is colored (visible) or not. I do not believe there is anything you can do to fix that. Quote Link to comment https://forums.phpfreaks.com/topic/83136-messed-up-tables/#findComment-514922 Share on other sites More sharing options...
themistral Posted April 13, 2008 Share Posted April 13, 2008 Tables automatically have a border, whether it is colored (visible) or not. I do not believe there is anything you can do to fix that. Try <table border="0"> Quote Link to comment https://forums.phpfreaks.com/topic/83136-messed-up-tables/#findComment-516322 Share on other sites More sharing options...
947740 Posted April 18, 2008 Share Posted April 18, 2008 I know you can do that, but I did not think it would be flush. There has to be something between the tables. There cannot be nothing. The table rows or table "datas" will make it "unflush" anyways. Quote Link to comment https://forums.phpfreaks.com/topic/83136-messed-up-tables/#findComment-520620 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.