Azoulay Jason
Azoulay Jason

Reputation: 2989

How to padding-top <ion-content> -Ionic 4

I work with Ionic 4 and the doc which I refer to, talks about css custom properties;

I tried to add --padding-top: 100px; to /theme/variables.scss it didn't work.

I want all the <ion-content> to have padding-top.

Upvotes: 1

Views: 5610

Answers (2)

Azoulay Jason
Azoulay Jason

Reputation: 2989

I just had to <ion-content style="--padding-top:100px"></ion-content>

Upvotes: 1

Ira Watt
Ira Watt

Reputation: 2135

adding veriables.scss

ion-content{
--padding-top: 100px;
}

enter image description here

Upvotes: 4

Related Questions