0

how can i add horizontal space between two forms in HTML?

Say one form is Username and other is Passkey, and both are side to side (as i am not using <br/>). Now if I want to add space between these two forms, what to use?

30th May 2017, 6:08 AM
Bhabanish
4 Respuestas
+ 11
yes you can place both forms in two div tag like this when you are using bootstrap CSS <div id="row"> <div id="col-lg-4> <!--form one goes here --> </div> <div id="col-lg-4> <!--horizontal space --> </div> <div id="col-lg-4> <!--form two goes here --> </div> </div>
30th May 2017, 6:12 AM
Awele Omeligwe
Awele Omeligwe - avatar
+ 10
You can use a non-breaking space (&nbsp;) if you want to assure they get separated no matter what.
30th May 2017, 6:15 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
thanks for the ans. I am new to html and could not properly manage to work correctly with the codes suggested by you all. so I used table tag to add some space between my two forms. it's working ok. I need to fine tune the spacing though. thanks again for the help. <table> <tr> <td> <form> <input type="text" name="username" /> </input> </form> </td> <td> </td> <td> <form> <input type="password" name="password" /> </form> </td>
1st Jun 2017, 3:37 AM
Bhabanish