web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do you vertical al...
Power Apps
Unanswered

How do you vertical align a modern number or text input?

(0) ShareShare
ReportReport
Posted on by 1,164
There doesnt seem to be a vertical align option.
 
My template has a height of 30, inputs have a height of 20 with a y value of 5. Font size is 10
 
 
Thanks in advance
 
Todd
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    There isn't but you can use the padding property and a few formulas to adjust it based on the height and font size.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at
    Hi @Tango
     
    Honestly there is a lot of options to try. is that a Text Box or Label? What type of control is it?
     
    You say vertically align, align how like center it?
    Couple option
     
    1. Make the Label / Input the same physical size as the container that is holding it. Then set the Text to Vertically centered in the Text control and bingo
     
    2. Set the Y value for the control to (I mean the input) be something like
     
    (MyParentContainer.Height / 2) + (Self.Height / 2)
     
    So if the arent container is 400 tall, it will split that in 2
    So 200
    But you have to also device the text input height / 2 so that it offsets only HALF of itself above the midpoint of the container.
     
     
     
  • Tango Profile Picture
    1,164 on at
    @ronaldwalcott do you have an example?
     
    NumberInput has a height of 20 and the font size is 10

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard