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 / PowerApps Tutorial Scr...
Power Apps
Answered

PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

(0) ShareShare
ReportReport
Posted on by 2,563

Hi

 

I'm using the PowerApps tutorial screen, but I cannot use the Text only field as i need to format different areas of the text to make it look good, so i replace the text label with a HtmlText, but how can I do vertical alignment with this?

 

Using a text label I can set the Vertical align to Middle but how would I do this with a HtmlText box?

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @JimmyWork 

    Using the default HTML Text as an example, the following will vertically center the text:

    "<div style='height:" & Self.Height - Self.PaddingTop - Self.PaddingBottom - 5 & "px;display:table-cell;vertical-align:middle;'>Show your <b><font color=blue>HTML</font></b> text here.</div>"

     

    I hope this is helpful for you.

  • JimmyW Profile Picture
    2,563 on at

    Thank you @RandyHayes  I had to replace the Self. with the name of the HTMLText box but everything is working perfect 😀

  • claudia Profile Picture
    208 on at

    Hi Jimmy,

     

    Please can you show me how did you replace the Text label with HtmlText?

     

    Thank you

    Claudia

  • JK94X Profile Picture
    on at

    @RandyHayes i am trying to center my text vertically in the middle as well and don't get it to work.

    Your code works for me - but I don't know how to integrate it into mine:

    Here is my code - Thanks for your help!✌️

     

    "<div style= 'text-align:center;transition: margin-right 2s;font-size:40px; color:white;text-shadow: 2px 2px 4px #000000'>"& Text("Select Visit")

     

    JK94X_0-1669625790471.png

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard