Jump to content

help?


BillyBoB

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.