umen
07-14-2002, 11:01 PM
Hello
i have wired problem im first im trying to innerHTML this:
"<span style='font-size:40;'>x</span>"
like this:
---------------------------------------------------------------------
function Insert()
{
Game.cells[0].innerHTML="<span style='width:40;height:40 '>x</span>"
}
-----------------------------------------------------------------------
now i have this table :
<TABLE WIDTH=270 height=270 BORDER=1 CELLSPACING=1 CELLPADDING=1 id="Game">
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
</TABLE>
now when i fire the function the <td> gets bigger and the font dont stretch all over the <td> .....
any idea why?
thanks
i have wired problem im first im trying to innerHTML this:
"<span style='font-size:40;'>x</span>"
like this:
---------------------------------------------------------------------
function Insert()
{
Game.cells[0].innerHTML="<span style='width:40;height:40 '>x</span>"
}
-----------------------------------------------------------------------
now i have this table :
<TABLE WIDTH=270 height=270 BORDER=1 CELLSPACING=1 CELLPADDING=1 id="Game">
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
<TR>
<TD > </TD>
<TD > </TD>
<TD > </TD>
</TR>
</TABLE>
now when i fire the function the <td> gets bigger and the font dont stretch all over the <td> .....
any idea why?
thanks