html - How to display input button from two different form in single line -


i have display both these buttons in single line. tried adding style="{display:block-inline;}"> in form element suggested somewhere didn't me. idea how ?

<html>     <body>         <div>             <form >               <input  type="submit" value="button1" />             </form>             <form >               <input  type="submit" value="button2" />             </form>         </div>     </body> </html> 

put both forms in own div , use float in css. see fiddle example:

<body> <div>     <div id=form1>         <form >             <input  type="submit" value="button1" />         </form>     </div>      <divid=form2>     <form >         <input  type="submit" value="button2" />     </form>         </div> </div> </body>   #form1{ float:left;  } #form2{  float:left;    } 

https://jsfiddle.net/5mcffrv9/


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -