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> Quote Link to comment 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? Quote Link to comment 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? Quote Link to comment 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.......... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.