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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Different color of Tex...
Power Apps
Answered

Different color of Text in a label

(2) ShareShare
ReportReport
Posted on by 320

Hello,

I need to use a label in which i am writing name of text and a special character.

So what i want is that text should be in black color and the special symbol to be in red color.

Can i do this???

 

Categories:
  • BitLord69 Profile Picture
    914 on at

    As far as I know, it's not possible to have different colours within the same label.

     

    Can you split the text in two labels and have the special character in a label of its own, thereby being able to colour it separately? If you right justify the label with the text and put the label with the special character very close by, it will look like one combined field.

  • abd3127 Profile Picture
    320 on at

    Hello @BitLord69

    I hav such labels in my project.so i needed to figure it out how to do so 

     

    Image Reference :

    1.Half Part of label is Black and the cursor is also black 

    black.JPG

    2.Half is red and cursor also turn red 

    red.JPGIts like a normal label nothing special and no new properties.

    But i couldnt do it and i can not use the label by copying as the red part becomes black when i edit the text in the copied label. 

     However when i copy the text in the label it shows a line in between the text and symbol.

    But its a single label .blue.JPG

     Thanks

  • Verified answer
    BitLord69 Profile Picture
    914 on at

    You are right and I was wrong - it can be done! I learnt something new today, great.

     

    You just have to select the part of the text in the label you want and then set the colour in the menu.Not sure how you would do this if you set the lable's text in code...

     

     

    Select the text in the label, and in the Start menu, click on the text colourSelect the text in the label, and in the Start menu, click on the text colourPresto! Two colours in a labelPresto! Two colours in a label

  • abd3127 Profile Picture
    320 on at

    @BitLord69 yeah thanks it worked 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I was able to create a different color of text within my label, but as soon as I applied it, all the words got messed up. Basically, as the words wrapped, they separated - so at the end of one line I have word started and then the next line is the rest of the word.  I'm having to individually go through and re-space every line.  Help!

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This did not work for me. Selecting part of the text and then selecting a different colour simply changes the colour of all text in the label. 

  • B4rikuda Profile Picture
    20 on at

    I was having issues with my label retaining my bold, italic, underlines, and line breaks. I switched over to an HTMLText Input type and it allowed me to use HTML to set more flexible boundaries around my text. You can use <font color=red>My red text</font> to color it.

  • priince Profile Picture
    2 on at

    A little late but for future reference, this can easily be done with the HTMLText control. Here's an example:

    "<div style = 'font-weight: bold; text-align: center'>
     <span>Hello, </span>
     <span style='color: RGBA(56, 96, 178, 1);'>"& If(Connection.Connected, Office365Users.MyProfile().GivenName, First(colLoggedInUser).GivenName)&"</span>
    </div>"

    This results in:

    priince_0-1714399542798.png

    Of course you can do this for any number of colours dynamically.

     

    Hope this is useful

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard