Archadian Posted October 8, 2008 Share Posted October 8, 2008 I was just wondering why isn't my table going the full width and length of the webpage? Yes i know this is a noob question but still any help will be appreciated. Thanks here is the link: http://phpweb.no-ip.com/index.php Link to comment https://forums.phpfreaks.com/topic/127490-php-html/ Share on other sites More sharing options...
kenrbnsn Posted October 8, 2008 Share Posted October 8, 2008 You need to post your code here between tags. Looking at the link will only show us the generated code, not how it's generated. Ken Link to comment https://forums.phpfreaks.com/topic/127490-php-html/#findComment-659618 Share on other sites More sharing options...
dropfaith Posted October 8, 2008 Share Posted October 8, 2008 from what i see it is full width? but posting the code someone will help better Link to comment https://forums.phpfreaks.com/topic/127490-php-html/#findComment-659635 Share on other sites More sharing options...
Archadian Posted October 8, 2008 Author Share Posted October 8, 2008 <?php session_start(); define('WEB', true); echo "<head>"; echo "<title>The Cabal Online Guide</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"include/cabal.css\">"; echo "</head>"; include('include/class.php'); $db =& new Mysql(); $db->cabal(); if (isset($_POST['submit']) && isset($_POST['username']) && isset($_POST['password'])) { login(); } if ($_GET['action'] == 'logout') { logout(); } include('include/func.php'); echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"#000000\">"; echo "<div width = \"100%\">"; echo "<tr>"; echo "<td width=\"29\" height=\"62\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['topleft'] . "\"></td>"; echo "<td width=\"940\" height=\"62\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['topmid'] . "\"></td>"; echo "<td width=\"29\" height=\"62\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['topright'] . "\"></td>"; echo "</tr>"; echo "</div>"; echo "<div width = \"100%\">"; echo "<tr>"; echo "<td width=\"27\" height=\"500\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['left'] . "\"></td>"; echo "<td width=\"940\" height=\"500\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; //echo "<div>{CONTENT}</div>"; echo "</td>"; echo "<td width=\"27\" height=\"500\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['right'] . "\"></td>"; echo "</tr>"; echo "</div>"; echo "<div width = \"100%\">"; echo "<tr>"; echo "<td width=\"27\" height=\"24\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['botleft'] . "\"></td>"; echo "<td width=\"960\" height=\"24\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['botmid'] . "\"></td>"; echo "<td width=\"27\" height=\"24\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"" . $mtbl['botright'] . "\"></td>"; echo "</tr>"; echo "</div>"; echo "</table>"; ?> Link to comment https://forums.phpfreaks.com/topic/127490-php-html/#findComment-659657 Share on other sites More sharing options...
dropfaith Posted October 8, 2008 Share Posted October 8, 2008 your using 100 percent on tables then forcing tds to specifed widths which may or may not add up to 100 percent of the screen.. use percentages on those as well Link to comment https://forums.phpfreaks.com/topic/127490-php-html/#findComment-659691 Share on other sites More sharing options...
mdgias Posted October 8, 2008 Share Posted October 8, 2008 when u mentioned 100%table width then no need to give the td/tr width. i hope then it will work Gias Link to comment https://forums.phpfreaks.com/topic/127490-php-html/#findComment-659702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.