On smaller devices, the layout of my horizontal label and text field is not as I expected. It appears like the image below:
https://i.sstatic.net/9I8Os.png
I am trying to make the First Name label left-aligned on small devices. Here is the code I have been using:
<div class="row">
<div class="col-sm-4 text-right">
<label for="firstname" class="control-label text-right">First Name :</label>
</div>
<div class="col-sm-6">
<input type="text" class="form-control" placeholder="Enter Your First Name" />
</div>
Any help would be appreciated.