Reputation: 45
I am building my web razor view and have an issue with the Label Tag Helper.
This is my markup:
<label asp-for="customer.FirstName" class="col-sm-2 col-form-label">First Name</label>
The problem is the First and Name are being show on separate lines and I want them on one line. Apologies if this is a simple question; I am a novice at this.
Many thanks for any help,
Upvotes: 1
Views: 1263
Reputation: 1290
You need to play with column size(class properties) eg :
<label asp-for="customer.FirstName" class="col-md-4 col-form-label">First Name</label>
It may be useful for you to get along with how the Grid System of bootstrap works:
https://getbootstrap.com/docs/4.0/layout/grid/
and
https://www.c-sharpcorner.com/article/bootstrap-for-beginners-part-threebootstrap-grids/
Upvotes: 1