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] Link to comment https://forums.phpfreaks.com/topic/14509-help/ 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] Link to comment https://forums.phpfreaks.com/topic/14509-help/#findComment-57503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.