Two table side by side

Two table side by side

Two table side by side

html two tables side by side

add margin-right to the one on the left or put margin-left on the right one?

margin-left to the right box does not work…both the table’s are moving when I do a margin-left to the right box.

Do you have a sample code to do it ?

This is my table. here is the original code . ( without margin-left to the right box)

<table width=”346″ height=”218″ border=”0″ class=”borderTable inlineTable” > <tr> <td>&nbsp;</td> <td>User Name <label> <input type=”text” name=”textfield2″> </label></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>Password <label> <input type=”text” name=”textfield3″> </label></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>Login &nbsp; Sign up </td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <table width=”346″ height=”218″ border=”0″ class=”borderTable inlineTable” > <tr> <td>&nbsp;</td> <td>User Name <label> <input type=”text” name=”textfield2″> </label></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>Password <label> <input type=”text” name=”textfield3″> </label></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>Login &nbsp; Sign up </td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table>

This is my CSS

<style> .borderTable { padding: 2px 4px 2px 4px; border: 1px solid #660000; }

table.inlineTable{ display:inline; </style>

This post was last modified on Tháng mười một 21, 2024 6:05 chiều