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 / CSS properties in HTML...
Power Apps
Unanswered

CSS properties in HTMLtext being stripped.

(0) ShareShare
ReportReport
Posted on by 3

I am using some CSS in an HTMLtext field to help me easily format some things, as this is easier and less cumbersome than some of the layout options we are given. For example, easier to do things like rounded corners, gradients, etc.

However, I am noticing that certain properties, like display: flexbox and display: grid get stripped out. (Verified via the browser dev tools).

Does anyone know if there going to be support for those CSS properties? 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @secorrales 
    The HTML textbox was designed for the main purpose of displaying text rather than responsive layouts for CSS.

    A better way to do responsive apps is by checking out this idea by KickingApps
    https://powerusers.microsoft.com/t5/Demo-Extravaganza-2020/Responsive-grid-and-Screen-Simulator-Components/cns-p/557891

    If you'd like to make a product feature request you can do so here.  The ideas with the most votes get incorporated into PowerApps.  I don't see any current ideas on this topic.

    Link to Ideas:
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • cchannon Profile Picture
    4,702 Moderator on at

    Depending on the complexity of your requirements, you might also consider pushing the controls out to a PCF embedded in canvas apps. In the PCF, you can specify any CSS you like, as well as using React to create dynamic, easily managed user experiences.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @secorrales 
    Please note: PCF components are only for model-driven apps.  You cannot use them in Canvas apps.

  • cchannon Profile Picture
    4,702 Moderator on at

    @mdevaney  - sorry, you are not correct. PCF is available for BOTH Model-driven and Canvas apps, although it is technically still just in "preview" for Canvas.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard