Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Eric7
Resolver II
Resolver II

How do I define these padding values in a theme: General - Properties - Padding?

Hi, a new(?) section for "Padding" has appeared in General - Properties - Padding for all visual types:

 

Eric7_0-1678962072687.png

I found this Padding section as I discovered that all my visuals have changed appearence recently without me doing any changes, the title and content have moved leftwards against the left border:

Eric7_1-1678962150651.png

Only when I change one of the 4 padding settings on a visual manually, the visual seems to pick up the default settings.

  • Do I have to manually change these padding settings for all my visuals to make them use the default?
  • Or can I put the padding settings in a theme, hopefully in one location in the theme for all visuals?
  • What is the name of the theme entry for these padding settinings

 

 

4 REPLIES 4
josecherian
Regular Visitor

Padding to all visuals can be added like below. Please refer to my blog post for  detailed instructions.

"visualStyles": {
        "*": {
            "*": {
                "padding":[{
                    "top":20,
                    "bottom":20,
                    "left": 20,
                    "right":20
                 }]
            }
        }

    }

 

MyriamW
Frequent Visitor

I just submitted a new idea regarding this topic: Microsoft Idea (powerbi.com)

Idrissshatila
Super User
Super User

Hello @Eric7 ,

Unfortunatly, there is no option in themes that would let us add padding values to it so we could apply it to all the reports.

 

so probably you should do it manually.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




I have hundreds of visuals around....

Why do the visuals NOT use the default padding values 0px/5px/5px/5px automatically, without me having to modify one of the padding settings on every visual manually? Seems like a bug or a limitation that should be fixed?

This is how it looks when I click "Reset to default" in the Padding section:

Eric7_1-1678969695165.png

This is how it looks when I adjust TOP padding to 1, and then back to 0:

Eric7_0-1678969069030.png

You see that now all 4 padding settings have been set to the ones showing in the Padding section.

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors