Align select, input, submit in same row without falling down - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Align select, input, submit in same row without falling down

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">
.my-search {<!--   w  w  w .j a v a  2  s  . c o m-->
   width:251px;
   background:red;
   display:inline;
}

select, input {
   display:inline-block;
}

input[type="text"] {
   display:inline-block;
   float:none;
}
</style> 
 </head> 
 <body> 
  <div class="my-search"> 
   <select> <option>All</option> <option>this makes error</option> </select> 
   <input type="text" class="seacrh-input"> 
   <input type="button" value="oke" class="input-btn"> 
  </div>  
 </body>
</html>

Related Tutorials