make input and select look nice beside each other with custom height - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:id

Description

make input and select look nice beside each other with custom height

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">
* {<!--from  w  ww.  j  ava 2  s  .c  o m-->
   box-sizing:border-box;
   -moz-box-sizing:border-box;
   -webkit-box-sizing:border-box;
}

input, select {
   width:51%;
   float:left;
   height:4em;
   padding:11px;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <input type="text"> 
   <select> <option>Lor</option> </select> 
  </div>  
 </body>
</html>

Related Tutorials