Expanding a div to 100% inside a php code
<p>I am trying to expand "page5Layer2" div to 100% width (as a moving full width footer), but am struggling with it! Here is the code</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
&lt;title&gt;Untitled Page&lt;/title&gt;
&lt;meta name="generator" content="WYSIWYG Web Builder 8 - http://www.wysiwygwebbuilder.com"&gt;
&lt;link rel="stylesheet" href="index.css" type="text/css"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="page5Html1" style="position:absolute;left:212px;top:33px;width:579px;height:422px;z-index:2"&gt;
&lt;?php
if (isset($_GET['admin']))
{
   if ($_GET['admin'] == 'login')
   {
      echo "&lt;center&gt;\r\n";
      echo "&lt;p class=\"title\"&gt;Guestbook login&lt;/p&gt;\r\n";
      echo "&lt;form method=\"post\" action=\"".basename(__FILE__)."\"&gt;&lt;p&gt;&lt;input type=\"password\" name=\"password\" size=\"20\"&gt; &lt;input type=\"submit\" value=\"Login\" name=\"submit\"&gt;&lt;/p&gt;&lt;/form&gt;\r\n";
      echo "&lt;/center&gt;\r\n";
      exit;
   }
}
else
{
   echo "&lt;p align=\"left\" class=\"title\"&gt;".TITLE."&lt;/p&gt;\r\n";

   if ($password != md5(ADMIN_PASS))
   {
      if (SHOW_FORM == "Yes" || $showform == "Yes")
      {
         $width = 50;
         $height = 23;
         $back_color = sscanf('#FFFFFF', '#%2x%2x%2x');
         $text_color = sscanf('#666666', '#%2x%2x%2x');
         $randomnr = mt_rand(1000, 9999);
         $im = imagecreatetruecolor($width, $height);
         $back_col = imagecolorallocate($im,$back_color[0],$back_color[1],$back_color[2]);
         $text_col = imagecolorallocate($im,$text_color[0],$text_color[1],$text_color[2]);
         imagefill($im, 0, 0, $back_col);
         imagerectangle($im, 0, 0, $width-1, $height-1, $text_col);
         imagerectangle($im, 2, 2, $width-3, $height-3, $text_col);
         imagestring($im, 5, 7, 3, $randomnr, $text_col);
         $_SESSION['random_txt'] = md5($randomnr);
         imagepng($im,'./gb_captcha.png');
         imagedestroy($im);

         echo "&lt;form action=\"".basename(__FILE__)."\" method=\"post\"&gt;\r\n";
         echo "&lt;table width=\"100%\" style=\"background-color:#FFFFFF;\"&gt;\r\n";
         if (NAME != "")
         {
            echo "&lt;tr&gt;\r\n";
            echo "&lt;td width=\"103px\"&gt;".NAME."&lt;/td&gt;\r\n";
            echo "&lt;td&gt;&lt;input type=\"text\" value=\"\" name=\"name\" style=\"width:100%;\"&gt;&lt;/td&gt;\r\n";
            echo "&lt;/tr&gt;\r\n";
         }
         if (SUBJECT != "")
         {
            echo "&lt;tr&gt;\r\n";
            echo "&lt;td&gt;".SUBJECT."&lt;/td&gt;\r\n";
            echo "&lt;td&gt;&lt;input type=\"text\" name=\"subject\" style=\"width:100%;\"&gt;&lt;/td&gt;\r\n";
            echo "&lt;/tr&gt;\r\n";
         }
         if (EMAIL != "")
         {
            echo "&lt;tr&gt;\r\n";
            echo "&lt;td&gt;".EMAIL."&lt;/td&gt;\r\n";
            echo "&lt;td&gt;&lt;input type=\"text\" value=\"\" name=\"email\" style=\"width:100%;\"&gt;&lt;/td&gt;\r\n";
            echo "&lt;/tr&gt;\r\n";
         }
         if (WEBSITE != "")
         {
            echo "&lt;tr&gt;\r\n";
            echo "&lt;td&gt;".WEBSITE."&lt;/td&gt;\r\n";
            echo "&lt;td&gt;&lt;input type=\"text\" value=\"\" name=\"website\" style=\"width:100%;\"&gt;&lt;/td&gt;\r\n";
            echo "&lt;/tr&gt;\r\n";
         }
         echo "&lt;tr&gt;\r\n";
         echo "&lt;td valign=\"top\"&gt;".MESSAGE."&lt;/td&gt;\r\n";
         echo "&lt;td&gt;&lt;textarea id=\"message\" name=\"message\" rows=\"3\" style=\"width:100%;\"&gt;&lt;/textarea&gt;&lt;/td&gt;\r\n";
         echo "&lt;/tr&gt;\r\n";
         echo "&lt;tr&gt;\r\n";
         echo "&lt;td valign=\"top\"&gt;Confirmation code:&lt;/td&gt;\r\n";
         echo "&lt;td&gt;\r\n";
         echo "&lt;img src=\"./gb_captcha.png?".uniqid(time())."\" width=\"50\" height=\"23\" alt=\"\" align=\"top\"&gt;&amp;nbsp;&lt;input name=\"captcha_code\" type=\"text\" size=\"4\"&gt;&amp;nbsp;\r\n";
         echo "&lt;/td&gt;\r\n";
         echo "&lt;/tr&gt;\r\n";
         echo "&lt;tr&gt;\r\n";
         echo "&lt;td&gt;&lt;/td&gt;\r\n";
         echo "&lt;td&gt;&lt;input type=\"submit\" name=\"Submit\" value=\"Submit\"/&gt;";
         echo "&lt;input type=\"reset\" value=\"Reset\"/&gt;";
         echo "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hide my email address&amp;nbsp;&amp;nbsp;&lt;input style=\"background-color:transparent;border-width:0\" type=\"checkbox\" id=\"hide_email\" name=\"hide_email\" value=\"Yes\"&gt;";
         echo "&lt;/td&gt;\r\n";
         echo "&lt;/tr&gt;\r\n";
         echo "&lt;/table&gt;\r\n";
         echo "&lt;/form&gt;\r\n";
      }
   }

   if ($_GET['report']!= "")
   {
      echo "&lt;div class=\"message\"&gt;".REPORT."&lt;/div&gt;\r\n&lt;br&gt;\r\n";
   }

   if ($showform == "Yes")
   {
   }
   else
   if (filesize(DB_FILE) == 0)
   {
      echo "&lt;div class=\"message\"&gt;".NO_POSTS."&lt;/div&gt;\r\n&lt;br&gt;\r\n";
   }
   else
   {
      $items = file(DB_FILE);
      $items = array_reverse($items);
      str_replace("&lt;", "&amp;lt;", $items);
      str_replace("&gt;", "&amp;gt;", $items);
      str_replace("\n", "&lt;br&gt;\n", $items);
      $entry = 0;
      $item_count = 0;
      $total = count($items);
      if (isset($_GET['entry']))
      {
         $entry = $_GET['entry'];
      }
      $prev_entry = $entry - ITEMS_PER_PAGE;
      $next_entry = $entry + ITEMS_PER_PAGE;
      $items = array_slice($items, $entry);
      $navigation = '&lt;span class="navigation" style="width:100%;text-align:right"&gt;';
      if ($prev_entry &gt;= 0)
      {
         $navigation .= '&lt;a href="'.basename(__FILE__).'?entry=';
         $navigation .= $prev_entry;
         $navigation .= '"&gt;'.PREVIOUS_PAGE.'&lt;/a&gt;';
      }
      if ($next_entry &lt; $total)
      {
         if ($prev_entry &gt;= 0)
         {
            $navigation .= '&amp;nbsp;&amp;nbsp;';
         }
         $navigation .= '&lt;a href="'.basename(__FILE__).'?entry=';
         $navigation .= $next_entry;
         $navigation .= '"&gt;'.NEXT_PAGE.'&lt;/a&gt;';
      }
      $navigation .= "&lt;/span&gt;&lt;br&gt;&lt;br&gt;\n";
      echo $navigation;
      foreach($items as $line)
      {
         $shown = false;
         list($timestamp, $name, $subject, $email, $website, $message, $ip, $status, $hide_email, $check) = explode(chr(02), trim($line));
         $topic = '&lt;div class="banner"&gt;'.date(DATEFORMAT,$timestamp) . ' ';
         if ($email != "" &amp;&amp; $hide_email != "Yes")
         {
            $topic .= '&lt;a href="mailto:'.$email.'"&gt;';
         }
         $topic .= $name;
         if ($email != "" &amp;&amp; $hide_email != "Yes")
         {
            $topic .= '&lt;/a&gt;';
         }
         if ($website != "")
         {
            $website = str_replace("http://", "", $website);
            if (DISPLAY_URL == "")
            {
               define('DISPLAY_URL', $website);
            }
            $topic .= '&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://'.$website.'" target="_blank"&gt;'.DISPLAY_URL.'&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - ';
         }
         else
         {
            $topic .= " - ";
         }
         $topic .= $subject.'&lt;/div&gt;';
         $topic .= '&lt;div class="message"&gt;'.$message.'&lt;/div&gt;';
         if (empty($password) &amp;&amp; $status != "Pending")
         {
            echo $topic;
            echo "&lt;br&gt;\r\n";
            $shown = true;
         }
         else
         if ($password == md5(ADMIN_PASS))
         {
            if ($display != "for_approval" || ($display == "for_approval" &amp;&amp; $status == "Pending"))
            {
               echo $topic;
               $shown = true;
            }
         }
         if ($password == md5(ADMIN_PASS) &amp;&amp; $shown == true)
         {
            echo '&lt;div class="admin"&gt;';
            if ($status == "Pending")
            {
               echo '&lt;a href="'.basename(__FILE__).'?admin=approve&amp;amp;msg='.$timestamp.'"&gt;[Approve]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;';
            }
            echo '&lt;a href="'.basename(__FILE__).'?admin=delete&amp;amp;msg='.$timestamp.'"&gt;[Delete]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="'.basename(__FILE__).'?admin=ban&amp;amp;msg='.$timestamp.'&amp;amp;email='.rawurlencode($email).'"&gt;[Ban]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="'.basename(__FILE__).'?admin=bandel&amp;amp;msg='.$timestamp.'&amp;amp;email='.rawurlencode($email).'"&gt;[Delete &amp; Ban]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://whois.sc/'.$ip.'" target="_blank" title="'.$ip.'"&gt;[IP whois]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;';
            if ($website != "")
            {
               echo '&lt;a href="http://whois.sc/'.$website.'" target="_blank" title="'.$ip.'"&gt;[Website whois]&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;';
            }
            echo '&lt;/div&gt;&lt;br&gt;';
         }
         if ($shown == true)
         {
            $item_count++;
            if ($item_count &gt;= ITEMS_PER_PAGE)
            {
               break;
            }
         }
      }
   }
   if ($showform == "Yes")
   {
      // do nothing
   }
   else
   if ($password == md5(ADMIN_PASS))
   {
      echo '&lt;div class="admin"&gt;';
      echo '&lt;a href="'.basename(__FILE__).'?admin=logout"&gt;Logout&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;';
      if ($display != "for_approval")
      {
         echo '&lt;a href="'.basename(__FILE__).'?display=for_approval"&gt;Show posts for Approval&lt;/a&gt;';
      }
      else
      {
         echo '&lt;a href="'.basename(__FILE__).'"&gt;Show All posts&lt;/a&gt;';
      }
      echo '&lt;/div&gt;';
   }
   else
   {
      if (SHOW_FORM == "No")
      {
         echo '&lt;span class="admin"&gt;';
         echo '&lt;a href="'.basename(__FILE__).'?showform=yes"&gt;'.SIGN_GUESTBOOK.'&lt;/a&gt;&amp;nbsp;&amp;nbsp;';
         echo '&lt;/span&gt;';
      }
      if (ADMIN_DISPLAY_LOGIN == "Yes")
      {
         echo '&lt;div class="admin"&gt;';
         echo '&lt;a href="'.basename(__FILE__).'?admin=login"&gt;'.ADMIN_LOGIN.'&lt;/a&gt;';
      }
      echo '&lt;/div&gt;';

      echo '&lt;div id="page5Layer2" style="position:relative;text-align:left;left:0px;top:20px;width:100%;height:200px;z-index:0;" title=""&gt;
&lt;/div&gt;';
   }
}
?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I know that the code is long, but what I need is written in the last 10 lines from the bottom.</p>

<p>Thanks.</p>

<p><em><strong></em>*EDIT***</strong>
Ok guys, sorry for that! I removed the before head php code.
And here is the css code:</p>

<pre><code>    div#container
{
   width: 980px;
   position: relative;
   margin-top: 0px;
   margin-left: auto;
   margin-right: auto;
   text-align: left;
}

body
{
   text-align: center;
   margin: 0;
   background-color: transparent;
   color: #000000;
}


#page5Layer2
{
   background-color: #000000;
}

td
{
   font-family: Tahoma;
   color: #666666;
   font-size: 11px;
}
input, textarea
{
   font-family: Tahoma;
   background-color: #FFFFFF;
   color: #666666;
   font-size: 11px;
   border-style: solid;
   border-width: 1px;
   border-color: #000000;
}
p.title
{
   font-family: Arial;
   font-size: 21px;
   color: #503137;
   font-weight: bold;
}
.banner
{
   font-family: Tahoma;
   font-size: 13px;
   background-color: #663F47;
   color: #FFFFFF;
   font-weight: bold;
}
.message
{
   font-family: Tahoma;
   font-size: 12px;
   background-color: #FFFFFF;
   color: #000000;
}
.admin
{
   font-family: Tahoma;
   font-size: 12px;
   color: #000000;
}
.navigation
{
   font-family: Tahoma;
   font-size: 11px;
   color: #000000;
   font-weight: bold;
}
</code></pre>

<p>Thanks.</p>
