When print-bannertext-left
is empty, the print-bannertext-center
shifts to the left. How can this issue be resolved?
.print-bannertext-left {
width: 30%;
float: left;
}
.print-bannertext-center {
width: 30%;
float: left;
margin-bottom: 0.2%;
}
.print-bannertext-right {
width: 30%;
float: right;
margin-bottom: 0.8%;
}
<div class="print-header">
<div class="print-bannertext-left">
</div>
<div class="print-bannertext-center">
8000-00-PO-201-01
</div>
<div class="print-bannertext-right">
7/15/2015 4:41:11 PM
</div>
</div>
<div class="print-header">
<div class="print-bannertext-left">
</div>
<div class="print-bannertext-center">
8000-00-PO-201-01
</div>
<div class="print-bannertext-right">
7/15/2015 4:41:11 PM
</div>
</div>
<div class="print-header">
<div class="print-bannertext-left">
</div>
<div class="print-bannertext-center">
8000-00-PO-201-01
</div>
<div class="print-bannertext-right">
7/15/2015 4:41:11 PM
</div>
</div>