How do I add horizontal line between select fields as follows:
Please check the horizontal line between each other:
How do I add horizontal line between select fields as follows:
Please check the horizontal line between each other:
 
    
     
    
    Try this
.line {
  position: relative;
  padding-left: 10px;
}
.line:first-child {
  padding-left: 0;
}
.line select {
  position: relative;
}
.line:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: red;
}<span class="line">
    <select>
        <option>lorem</option>
    </select>
</span>
<span class="line">
    <select>
        <option>lorem</option>
    </select>
</span>
<span class="line">
    <select>
        <option>lorem</option>
    </select>
</span> 
    
    You can try this JSFiddle
.wrapper{
  position:relative;
}
.select2, .select1{
  height:20px;
  width:40%;
  position:absolute;
}
.select1{
  left:0;
}
.select2{
  right: 0;
}
.line{
  position:absolute;
  border-bottom: 1px solid red;
  top:10px;
  left:0;
  right:0;
}
Line's width is the same as wrapper's one.
<div class="wrapper">
  <div class="line">
  </div>
  <select class="select1">
    <option>1</option>
    <option>2</option>
  </select>
  <select class="select2">
    <option>1</option>
    <option>2</option>
  </select>
</div>
