-
Inputs like MudTextField refused to aligned. https://try.mudblazor.com/snippet/wEmPOUaSMEQKFlXv I didn't understand where was the mistake. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Note sure what you think is not correct, if it is the middle one not aligned, then that is because you do not have ma-4 on the mid item like you do with the paper on the other two. If you add ma-4 to the middle muditem so that every outer item has the same margin then it all looks good to me. Or is there something else? |
Beta Was this translation helpful? Give feedback.
-
I guess I didn't explain well. I want to align center both mudtext and mudtext field. However MudText is aligned but MudTextField is not aligned. In try mud blazor i want to show that i tried various things, and prepare 3 examples. In or out of the MudPaper, input element didn't aligned center or start, it always take place of bottom. I want to centered vertically the MudTextField like MudText which already done properly. |
Beta Was this translation helpful? Give feedback.
-
What you are aligning in the center is not the text of the TextField, is the whole TextField, that is centered. Do you want to have a label element side by side with the TextField? See this example But in Material-land, usually, you use the label provided by the TextField |
Beta Was this translation helpful? Give feedback.
What you are aligning in the center is not the text of the TextField, is the whole TextField, that is centered.
Do you want to have a label element side by side with the TextField?
Try to align the label text with the TextField text, not the contrary.
See this example
https://try.mudblazor.com/snippet/mYQlaUYzUSaxLUAQ
But in Material-land, usually, you use the label provided by the TextField