Reputation: 459
I am trying to align a label to the left and I have given the property for it in the XML view and also in CSS file but it doesn't change at all
XML
<Label text="Buyer Name" textAlign="Left" class="customFontSimpleForm" />
CSS
.sapMLabel {
float: left;
text-align : left;
}
Upvotes: 0
Views: 922
Reputation: 2256
If you are using SimpleForm
control then you can use the below CSS
.sapUiForm .sapUiFormElementLbl>.sapMLabel {
text-align: left !important;
width : auto;
}
Note: Update the selectors as per your requirement
Upvotes: 2