Jump to content

Table stretching


chiefrokka

Recommended Posts

Can someone please help me figure out why the first column of my table stretches but the rest don't? 

Here's a link to see what I'm talking about.  http://www.phppicks.com/Demo_Squares/

if your web browser is larger than the table the first column gets stretched out and all messed up.  It shows up perfect on my 1024x768 but for those with larger resolution or dual monitors you'll see what i mean. 

there's tons of code so I can't post it all but here's the beginning of it.  I tried taking out the first "width="100%" but that didn't do anything. 

 

echo '<table width="100%" border="3" bordercolor="#0000FF" cellspacing="2" font size=\"3\">';

echo "<tr><td colspan='12' align='center' bgcolor='#D3E7FA'>Currently on Week <b><font color='#ff0000'>" .$Current_Week. "</b></font></td>";

echo "<tr><td colspan='12' align='center' bgcolor='#D3E7FA'><b>" .$Date. "</b></td>";

echo "<tr><td>";

 

// display Team1 icon going horizontal at top of chart

for ($counter=0; $counter<=9; $counter++) 

{

echo"<td align='center'>";

Display_NFL_Team_Icon($Team2); // call function

echo "<br><b><font color='0000FF' align='center'></b>" .$Horizontal_Numbers[$counter]. "";

echo "</td>";

}

 

echo "<tr>"; 

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.