How to change the default value of "padding"?

As title,

I want to change the default value of padding in ionic !

for example: I use this way to change the value for each page

<ion-content padding style="padding:5px;">
</ion-content>

I want to change the value of padding for all pages using css codes (if possible)

1 Like

one way is to go to your app.scss and give this style

*[padding] {
    padding: 10px;
}

as the padding directive will be applied to elements as attributes so you are free to select those elements by css selectors. ( the above selector means every element having the padding attribute)

1 Like

works fine when I added “!important”