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.
Bạn đang xem: Two table side by side
Xem thêm : Zilretta Injections | Kenneth Bramlett, MD
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)
Xem thêm : MARC Growth and Transformation Plan
<table width=”346″ height=”218″ border=”0″ class=”borderTable inlineTable” > <tr> <td> </td> <td>User Name <label> <input type=”text” name=”textfield2″> </label></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td>Password <label> <input type=”text” name=”textfield3″> </label></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td>Login Sign up </td> <td> </td> <td> </td> </tr> </table> <table width=”346″ height=”218″ border=”0″ class=”borderTable inlineTable” > <tr> <td> </td> <td>User Name <label> <input type=”text” name=”textfield2″> </label></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td>Password <label> <input type=”text” name=”textfield3″> </label></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td>Login Sign up </td> <td> </td> <td> </td> </tr> </table>
This is my CSS
<style> .borderTable { padding: 2px 4px 2px 4px; border: 1px solid #660000; }
table.inlineTable{ display:inline; </style>
Nguồn: https://blogtinhoc.edu.vn
Danh mục: Info