Jump to content


Photo

help?


  • Please log in to reply
1 reply to this topic

#1 BillyBoB

BillyBoB
  • Members
  • PipPipPip
  • Advanced Member
  • 630 posts

Posted 13 July 2006 - 05:18 PM

heres the code i dont get why the td on the right doesnt go ne smaller

<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>

if u would like to see it in action heres the http://dreamshowstudios.net/test/

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 13 July 2006 - 06:42 PM

try to remove the "px" from the width and height. "px" should be used only in css

<td valign="Top" width="200" height="100"

or in css
<td valign="Top" style="width:200px; height:100px;"

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users