HTML - Putting Two Different Tables Beside Each Other -
i want make these 2 tables placed beside each other. tried using div
unable put them side side. tried using style="display: inline-block
, yet doesn't work. need on this.
<form id="checkbox1" method="get" align="left"> <table style="width:30%" align="left" style="display: inline-block;"> <input type="checkbox" value="select" align="center" id="check1"> calculate number of head count when days fixed<br> <tr> <td>number of days</td> <td class="left"><input type="text" id="numdays" /></td> </tr> <tr> <td>head count</td> <td class="left"><input type="text" name="hc" id="hc" /> per shift</td> </tr> </table> </form> <form id="checkbox2" method="get" align="left"> <table style="width:30%" align="left" style="display: inline-block;"> <input type="checkbox" value="select" align="center" id="check2"> calculate number of days when head counts fixed<br> <tr> <td>number of head count</td> <td class="left"><input type="text" id="numheadc" /></td> </tr> <tr> <td>number of days</td> <td class="left"><input type="text" name="days" id="days" /> days</td> </tr> </table> </form>
the tables aren't siblings. need style forms side side.
set display: inline-block
on form elements.
you should fix errors a validator pick up.
Comments
Post a Comment