Jump to content

Archived

This topic is now archived and is closed to further replies.

BillyBoB

help?

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

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.