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
https://forums.phpfreaks.com/topic/87594-table-stretching/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.