Have two inline inputs take up remaining space - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Have two inline inputs take up remaining space

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#holder {<!--  w w  w .j  a v a2s  . c  o  m-->
   width:401px;
   background:gray;
}

#holder span {
   width:100px;
   display:inline-block;
   background:red;
}

#holder input {
   width:281px;
}
</style> 
 </head> 
 <body> 
  <div id="holder"> 
   <span>Lorem ipsu</span> 
   <input id="srchfor"> 
   <br> 
   <span>Lore</span> 
   <input id="srchin"> 
   <br> 
   <span>Lorem </span> 
  </div>  
 </body>
</html>

Related Tutorials