I prefer aligning all components to the left and also like having control over their sizing. For instance, take a look at this: div class="containerSelectBox checkbox_label"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<style>
.demo-content {
font-size: 18px;
min-height: 300px;
background: #dbdfe5;
}
.demo-content.bg-alt {
background: #abb1b8;
}
.green {
background: yellow;
border: 1px solid lightgreen;
text-align: center;
}
.containerSelectBox {
overflow-y: scroll;
height: 80px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.checkbox_label label {
margin: 0px 20px 0px 3px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-12 green ">
<span class="text-left">
<h3>
APP Configuration
</h3>
</span>
<div class="row">
<div class="col-lg-12 pull-left">
<div class="col-xs-1 col-sm-1 text-left">Email</div>
<div class="containerSelectBox checkbox_label col-xs-5 col-sm-5 pull-left" id="multi_select">
</div>
<div class="col-xs-1 col-sm-1 text-left">Email:</div>
<div class="containerSelectBox checkbox_label col-xs-5 col-sm-5 pull-left" id="multi_select2">
</div>
</div>
<div class="col-lg-12 pull-left">
<div class="col-xs-1 col-sm-1 text-left">Email:</div>
<div class="containerSelectBox checkbox_label col-xs-5 col-sm-5 pull-left" id="multi_select3">
</div>
<div class="col-xs-1 col-sm-1 text-left">Email:</div>
<div class="containerSelectBox checkbox_label col-xs-5 col-sm-5 pull-left" id="multi_select4">
</div>
</div>
<div class="col-lg-12 pull-left">
<div class="col-xs-1 col-sm-1 text-left">IP:</div>
<div class="col-xs-5 col-sm-5 pull-left">
<input type="text" required="required" id="foo3" class="form-control col-xs-5 col-sm-5" disabled>
</div>
<div class="col-xs-1 col-sm-1 text-left">IP:</div>
<div class=" col-xs-5 col-sm-5 pull-left">
<input type="text" required="required" id="foo2" class="form-control col-xs-5 col-sm-5" disabled>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
This completely disregards the tall CSS: In the code snippet, it appears odd, with the main target being desktops. Currently, it looks like this: https://i.sstatic.net/MxxrS.png I am attempting to align everything to the left and maintain the CSS high height of 80px; you can see that there is a gap between the textbox and the text.