Jump to content


Photo

Table wont stretch :(


  • Please log in to reply
7 replies to this topic

#1 youwh

youwh
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 25 September 2006 - 10:42 AM

I m havin trouble with my php page cause 1 of the table wont stretch. Heres the code...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>ekaeke*A Hair &amp; Scalp Wellness Company</title>
	<style type="text/css">
html,body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	height:100%; /* needed for container min-height */
	font-family:arial,sans-serif;
	font-size:small;
}

.language {
color: #FFFFFF; 
font-size: 10px; 
font-family: Geneva, Arial, Helvetica, sans-serif;
 }

.grey_title {
	color: #333333;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}

 .footer {
	color: #FFFFFF; 
	font-size: 11px;
	font-family: Geneva, Arial, Helvetica, sans-serif;
 }

#footer {
	position:absolute;
	width:100%;
	bottom:0; /* stick to bottom */
}

#container {
	position:relative;
	margin:margin:0 0 0 220px;
	width:100%;
	min-height:100%;
}
}
-->
</style>
</head>
<body>
<div id="container">
  <table width="100%" height="95"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="150" align="center" bgcolor="#CCCCCC">&nbsp;</td>
      <td width="150" align="center" bgcolor="#CCCCCC">&nbsp;</td>
      <td width="150" align="center" bgcolor="#CCCCCC">&nbsp;</td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="height:100%; ">
    <tr>
      <td width="150" rowspan="2" align="left" valign="top" >&nbsp;</td>
      <td width="5" rowspan="2" align="left" valign="top" bgcolor="#0033FF">&nbsp;</td>
      <td width="150" rowspan="2" align="center" valign="top">&nbsp;</td>
      <td width="10" rowspan="2" align="left" valign="top" bgcolor="#CCCCCC">&nbsp;</td>
      <td align="left" valign="top"></td>
      <td width="10" rowspan="2" align="left" valign="top" bgcolor="#0099FF">&nbsp;</td>
      <td rowspan="2" align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td width="465" align="left" valign="top" bgcolor="#FFFFFF"><table width="465" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="465" border="0" align="center" cellpadding="0" cellspacing="20">
            <tr>
              <td>info will be show ehre</td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
  <div id="footer">
    <td height="52"><table width="100%" height="72"  border="0" cellpadding="0" cellspacing="0" bgcolor="black">
      <tr>
        <td height="10"><img src="images/spacer.gif" width="1" height="1" /></td>
      </tr>
      <tr>
        <td height="42" align="center" valign="top"><span class="footer">Copyright (c) 2006 </span></td>
      </tr>
       </table></td>
  </div>
</div>
</body>
</html>

you can see theres this 3 bar inside a table. but i cant seems to make the table stretch till the bottom black bar.
please help meee.... ><

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 01:38 PM

Which table?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 youwh

youwh
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 25 September 2006 - 02:55 PM

see the 3 bars 1 with blue color? its actually inside a table. i wanted the table height to be 100% so tat the 3 bars will touch the black bar on the bottom

#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 06:29 PM

I see a gray section on the top, a black section with copyright, and nothing else.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#5 sanfly

sanfly
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationNew Zealand

Posted 25 September 2006 - 08:23 PM

Change This

#container {
position:relative;
margin:margin:0 0 0 220px;
width:100%;
min-height:100%;
}


to this:

#container {
position:relative;
margin:margin:0 0 0 220px;
width:100%;
height:100%;
}


If you're not part of the solution, you're part of the precipitate

#6 youwh

youwh
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 26 September 2006 - 02:26 AM

i aint workin. it does stretch the boxes. but its over exceeding the area, till i hav to scroll.

[attachment deleted by admin]

#7 sanfly

sanfly
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationNew Zealand

Posted 26 September 2006 - 03:58 AM

Also change this:

#footer {
position:absolute;
width:100%;
bottom:0; /* stick to bottom */
}


To this:

#footer {
position:absolute;
width:100%;
margin-bottom:0; /* stick to bottom */
}



If you're not part of the solution, you're part of the precipitate

#8 youwh

youwh
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 26 September 2006 - 06:39 AM

hmm...this does make the middle table grow to 100% heigh, but when it add up with the top and bottom part, it will exceed.
if i change the height from 100% to 80% it will some how fit everything in, but i think it might hav other problems later...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users