remove margin between centered input search tag and select tag - HTML CSS CSS

HTML CSS examples for CSS:Selector

Description

remove margin between centered input search tag and select tag

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">
div {<!--   ww w.  j ava 2  s.co  m-->
   margin:0;
}

input {
   margin:0;
}

select {
   margin:0;
   margin-left:-6px;
   height:22px;
   padding-left:0;
}
</style> 
 </head> 
 <body> 
  <div id="div" align="center"> 
   <input id="search" type="search"> 
   <span id="span"> <select> <option value="all">Lorem ipsum do</option> <option value="test1">Lorem </option> <option value="test2">Lorem </option> <option value="test3">Lorem </option> </select> </span> 
  </div>  
 </body>
</html>

Related Tutorials