BillyBoB Posted July 13, 2006 Share Posted July 13, 2006 heres the code i dont get why the td on the right doesnt go ne smaller[code]<table style="background: #3f5678;" cellspacing="0" cellpadding="0"> <tr> <td width="492px" Valign="top" style="background: #35527b;border: 1px solid #555555;"> <?php $result = mysql_query("SELECT * FROM news ORDER BY whenposted DESC LIMIT 5"); while($row = mysql_fetch_assoc($result)){ $datefromdb = $row['whenposted']; $year = substr($datefromdb,0,4); $mon = substr($datefromdb,4,2); $day = substr($datefromdb,6,2); $hour = substr($datefromdb,8,2); $min = substr($datefromdb,10,2); $sec = substr($datefromdb,12,2); $time = date("l F dS, Y h:i A",mktime($hour,$min,$sec,$mon,$day,$year)); echo '<center>' . $row['title'] . '<br>by ' . $row['poster'] . ' on ' . $time . '<br>'; echo $row['textmessage'] . '<br><hr></center>'; } ?> </td> <td valign="Top" width="200px" height="100px" style="background: #35527b;border: 1px solid #555555;"> Control Panel </td> </tr></table>[/code]if u would like to see it in action heres the [url=http://dreamshowstudios.net/test/]http://dreamshowstudios.net/test/[/url] Quote Link to comment Share on other sites More sharing options...
nogray Posted July 13, 2006 Share Posted July 13, 2006 try to remove the "px" from the width and height. "px" should be used only in css[code]<td valign="Top" width="200" height="100"[/code]or in css[code]<td valign="Top" style="width:200px; height:100px;"[/code] Quote Link to comment 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.