alia
alia

Reputation: 459

Label is not aligning to left

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

enter image description here

XML

<Label text="Buyer Name" textAlign="Left" class="customFontSimpleForm"  />

CSS

.sapMLabel {
    float: left;
    text-align : left;
}

Upvotes: 0

Views: 922

Answers (1)

Inizio
Inizio

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

Related Questions