sdowney717
March 6th, 2011, 02:11 PM
vertical-align:top is also ignored
it does respond to width and also does respond to align
I put some data in a table with 2 columns
when ever the second column overruns the width so the text wraps, the first column text centers in the table cell.
I want it to pin itself to the top of the cell.
this is it here.
echo " <td WIDTH='350';vertical-align='top'; align='right'>$mdata[$loop600]</td>"; //the names of the numbered fields
echo " <td WIDTH='600';vertical-align='top'; align='left'>$arr[2]</td>"; //the first data of the subfield of the tag
this is the whole routine
//print array here, split off chr(29)
echo "<table width='952' border='0'>";
//$mdata holds the tag names with each number corresponding to the text name
$loop600 = 1;
while ($loop600 < 900)//dont show local LOC tags
{
if (!empty($taggs[$loop600]))
{
$arr = explode(chr(29),$taggs[$loop600]);
//if ($loop600 == 650) {print_r ($arr);}
echo " <tr>";
echo " <td WIDTH='350';vertical-align='top'; align='right'>$mdata[$loop600]</td>"; //the names of the numbered fields
echo " <td WIDTH='600';vertical-align='top'; align='left'>$arr[2]</td>"; //the first data of the subfield of the tag
echo " </tr>";
for ($i = 3; $i < count($arr); $i += 2)
{
echo " <tr>";
echo " <td>"." "."</td>";
echo " <td>".$arr[($i+1)] ."</td>";
echo " </tr>";
}
$arr = array();
}
$loop600 = ($loop600 +1);
}
it does respond to width and also does respond to align
I put some data in a table with 2 columns
when ever the second column overruns the width so the text wraps, the first column text centers in the table cell.
I want it to pin itself to the top of the cell.
this is it here.
echo " <td WIDTH='350';vertical-align='top'; align='right'>$mdata[$loop600]</td>"; //the names of the numbered fields
echo " <td WIDTH='600';vertical-align='top'; align='left'>$arr[2]</td>"; //the first data of the subfield of the tag
this is the whole routine
//print array here, split off chr(29)
echo "<table width='952' border='0'>";
//$mdata holds the tag names with each number corresponding to the text name
$loop600 = 1;
while ($loop600 < 900)//dont show local LOC tags
{
if (!empty($taggs[$loop600]))
{
$arr = explode(chr(29),$taggs[$loop600]);
//if ($loop600 == 650) {print_r ($arr);}
echo " <tr>";
echo " <td WIDTH='350';vertical-align='top'; align='right'>$mdata[$loop600]</td>"; //the names of the numbered fields
echo " <td WIDTH='600';vertical-align='top'; align='left'>$arr[2]</td>"; //the first data of the subfield of the tag
echo " </tr>";
for ($i = 3; $i < count($arr); $i += 2)
{
echo " <tr>";
echo " <td>"." "."</td>";
echo " <td>".$arr[($i+1)] ."</td>";
echo " </tr>";
}
$arr = array();
}
$loop600 = ($loop600 +1);
}