Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qoRRNOcAfzwuqi28y7JXff
Power Apps - Building Power Apps
Answered

PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

Like (0) ShareShare
ReportReport
Posted on 4 Mar 2022 17:08:08 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?

  • JK94X Profile Picture
    on 28 Nov 2022 at 08:55:58
    Re: PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

    @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

     

  • claudia Profile Picture
    208 on 14 Jun 2022 at 12:06:31
    Re: PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

    Hi Jimmy,

     

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

     

    Thank you

    Claudia

  • JimmyW Profile Picture
    2,563 on 04 Mar 2022 at 19:43:24
    Re: PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

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

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 04 Mar 2022 at 17:55:11
    Re: PowerApps Tutorial Screen (Replacing with HTML text Vertical Alignment)

    @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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard