Reply
jslade
Helper I
Helper I

Modify Margins or Alignment In Powerbi-client to Embed Power BI in Web Application

We are using Powerbi-Client to embed our power bi reports into our web application.  However, we have a lot of white space between our iFrame and the report and are looking for a way to remove the white space.  Is there a way to adjust the margins or left justify a report within the iFrame in Powerbi-Client?

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @jslade ,

 

I think you can try code as below.

Method1: 

 <iframe src="your_report_url" style="width: 100%; height: 100%; border: none; overflow: hidden;" allowfullscreen="true"></iframe>

Method2:

<iframe src="your_report_url" style="width: 2400px; height: 1400px; border: none;"></iframe>

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you I will give it a try and let you know how it goes.

avatar user

Helpful resources

Announcements
FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)