Log in

View Full Version : buttons



cheekychop
03-26-2008, 07:57 PM
how do i get my buttons to go underneath each other rather than them being in a row?

NXArmada
03-26-2008, 08:02 PM
too little data to provide an answer. Please give more details. Please provide your code.

cheekychop
03-26-2008, 08:04 PM
sorry




<td><input id="A" type="button" value="A" onclick="clicked(this);" /></td>
<td><input id="B" type="button" value="B" onclick="clicked(this);" /></td>



these buttons are in a row but i want them placed underneath each other instead.

NXArmada
03-26-2008, 08:06 PM
Well that is html and not javascript

This well put them underneath each other.


<tr><td><input id="A" type="button" value="A" onclick="clicked(this);" /></td></tr>
<tr><td><input id="B" type="button" value="B" onclick="clicked(this);" /></td></tr>


Note the added<tr>.

<TABLE> (Opening Table)
<TR> (New Row) <TD> (New Column)
</TR> (Close Row) </TD> (Close Column)
</TABLE> (Closes table)

cheekychop
03-26-2008, 08:15 PM
thanks