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 Pages / Portal background colo...
Power Pages
Unanswered

Portal background color causing problem on entity form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The Portal I'm working on has a colorful background.

I'm not setting the color through theme, as it was not working for most of the entity form buttons. Instead, I'm setting body background-color (through css) for each web page.

From my Home I call one entity list and from this entity list call a web page that has entity form.

Here is where I have problem: this page is showing the color that was applied to the background of the Home page.

RBastos_0-1606234327796.png

I tried to apply css to this page, but it doesn't work.

 

This is the form. Where the red is appearing it's a quick view control on the form. 

RBastos_1-1606234461319.png

 

Any idea on how to solve it?

 

Categories:
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous , Based on your statement. I assume you have applied the css in the web page. If so please try the following steps to apply your web page css. 

     

    1. Open portal management > Web pages 

    2. Select the web page > under localized content > choose the web page again 

    3. Click Advanced > under custom css > Add your css with !important tag. Ex 

     

    .override-bkground{ 
    background-color: white !important; 
    }

    4. Remember to press the sync configuration > to make the css effective. 

     

    Hope it helps. I have tested this and its working fine. 

     

    ------------

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi ragavanrajan, thank you for your answer.

    Unfortunately it didn't work.

    It seems that there's something blocking any css that is applied to this section.

  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @Anonymous ,

     

    Quickview forms on the portal are rendered as separate iframes. I had similar problem styling them and solution that I used was to find names of the css classes used in quick view form and then write my update of those style in a bootstrap file that is used by the portal, because it is loaded within an iframe. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried many different ways to get the element and set the body background color.

    The solution that worked is:

    Add the following jquery code in the Localized content of the web page:

     

    RBastos_0-1606503572375.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

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 Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 4

Last 30 days Overall leaderboard