0

I am using lightning-record-edit-form and I want all labels in lightning-input-field for record fields to be centered. I don't also want to hide all these labels, override them- like

<label for="MobilePhone">Mobile Phone</label>

and css:

label{ display:block; width:x; height:y; text-align:center; }

It works but it doesn't look like a wise solution. And I can't use "slds-align_absolute-center" class because it will center input fields also, not only labels. I haven't find how to solve this issue- all solutions here I've found are about horizontal/vertical alignment, and it's totally other thing.

Thanks in advance)

0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy