Fields fill page horizontally

Fields fill page horizontally

Hello to all. I have a problem with the layout. I like the vertical version but not the horizontal. How can I do so that the labels remain above the fields and the fields fill the page horizontally? thanks

  1. <body>
  2.     <div data-role="page" id="page">
  3.       <div data-role="header">
  4.         <h1>Intestazione</h1>
  5.       </div>
  6.       <div data-role="content">
  7.         <p>Registrati gratuitamente a PayDiv
  8.         <div data-role="fieldcontain"> </div>
  9.         <div data-role="fieldcontain">
  10.           <label for="textinput6">Nome:</label>
  11.           <input type="text" name="textinput6" id="nome" value=""  />
  12.         </div>
  13.         <div data-role="fieldcontain">
  14.           <label for="textinput5">Cognome:</label>
  15.           <input type="text" name="textinput5" id="cognome" value=""  />
  16.         </div>
  17.         <div data-role="fieldcontain">
  18.           <label for="textinput4">Email:</label>
  19.           <input type="text" name="textinput4" id="email1" value=""  />
  20.         </div>
  21.         <div data-role="fieldcontain">
  22.           <label for="textinput3">Ripeti Email:</label>
  23.           <input type="text" name="textinput3" id="email2" value=""  />
  24.         </div>
  25.         <div data-role="fieldcontain">
  26.           <label for="textinput2">Password:</label>
  27.           <input type="password" name="textinput2" id="password1" value=""  />
  28.         </div>
  29.         <div data-role="fieldcontain">
  30.           <label for="textinput">Ripeti Password:</label>
  31.           <input type="password" name="textinput" id="password2" value=""  />
  32.         </div>
  33.         </p>
  34.         </p>
  35.         <div data-role="fieldcontain">
  36.           <fieldset data-role="controlgroup">
  37.             <legend></legend>
  38.             <input type="checkbox" name="checkbox1" id="condizioni" class="custom" value="1" />
  39.             <label for="condizioni">Sono d'accordo bla bla bla...</label>
  40.           </fieldset>
  41.           <a href="#" data-role="button" onclick="app.controllaCampi();">Registrami</a> </div>
  42.       </div>
  43.       <div data-role="footer">
  44.         <h4>Piè di pagina</h4>
  45.       </div>
  46.     </div>
  47. </body>