Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I have my application in ASP.NET Core with embedded a PowerBI report. The result is that.
I want to remove the white margin on the left and on the right. I tried to change the CSS without result. DO you have any hint for it? Thank you
Solved! Go to Solution.
Hi @Anonymous
You may refer to this blog to learn how to customize Power BI embedded frame.
For reference:
Customizing PowerBI report in Power Apps Portal
The height of the element is 600 px by default.
You can customize the height and width of Power BI report by code as below.
.powerbi{
height:85vh
}
Here is a post with similar requirement like yours, I hope it could help you.
For reference:
How to remove the border of an embedded power bi report
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.
Hi @Anonymous
You may refer to this blog to learn how to customize Power BI embedded frame.
For reference:
Customizing PowerBI report in Power Apps Portal
The height of the element is 600 px by default.
You can customize the height and width of Power BI report by code as below.
.powerbi{
height:85vh
}
Here is a post with similar requirement like yours, I hope it could help you.
For reference:
How to remove the border of an embedded power bi report
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.