PDA

View Full Version : Pls Help!Im php Noob..


motili
10-26-2007, 08:53 PM
Pls can someone help me with the banner on my page please.Im need it centered.with 1024x768 is good just with 1280x1024 is in left side.

echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/logo/logo-project3.12.jpg' alt='' title='".$settings[sitename]."'></td>";
echo "</td></tr></table>";

Thx with Advance.....

mlseim
10-26-2007, 09:29 PM
You have some <td>,<table>'s mixed up ...

try this:

echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/logo/logo-project3.12.jpg' alt='' title='".$settings[sitename]."'>";
echo "</td></tr></table>";

motili
10-26-2007, 09:45 PM
Yes this is working.Thx with advance my friend....