TeddyKiller Posted May 3, 2010 Share Posted May 3, 2010 The TD is in a table, so its a table within a TD inside a table.. It puts the submit button, under the other table. Is there any way to prevent this so that it displays next to the A. Thanks! <td align="right"> <table id="palette" style="display:none"> <tr> <td height="10" width="10" style="background-color:#fff;"></td> <td height="10" width="10" style="background-color:#ff5;"></td> <td height="10" width="10" style="background-color:#ff0;"></td> <td height="10" width="10" style="background-color:#f55;"></td> <td height="10" width="10" style="background-color:#f00;"></td> <td height="10" width="10" style="background-color:#000;"></td> </tr> </table> <a href="#colors" onclick="showPalette(\'palette\')">A</a> <input type="submit" name="submit" value="submit" /> </td> Link to comment https://forums.phpfreaks.com/topic/200534-table-within-td-help/ Share on other sites More sharing options...
TeddyKiller Posted May 3, 2010 Author Share Posted May 3, 2010 I believe you can't put things next to a table without floats. Is there anyway to fix this? Link to comment https://forums.phpfreaks.com/topic/200534-table-within-td-help/#findComment-1052288 Share on other sites More sharing options...
F1Fan Posted May 3, 2010 Share Posted May 3, 2010 There are several options. Like you said, you could do a float, which is your best option. Other options basically include other <td>s. Either put your other elements into another cell in the outer table, or in one in the inner table. Is there a reason that none of these are possible? Link to comment https://forums.phpfreaks.com/topic/200534-table-within-td-help/#findComment-1052375 Share on other sites More sharing options...
patriklko Posted May 15, 2010 Share Posted May 15, 2010 you can adjust the two by creating a row <tr> with two columns <td> and adjust the alignment of the content to display it properly.......... Link to comment https://forums.phpfreaks.com/topic/200534-table-within-td-help/#findComment-1058670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.