Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Remove white margin in embedded report

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

  • Anonymous's avatar
    Anonymous
    4 years ago

    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.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.