@jperez1111 wrote:
Dear All,
I’m aware that Ionic provides some CSS utilites with attributes to define the padding of the ion-content within the template, e.g. in Page.html you could have following line to apply padding to the top:
<ion-content padding-top>
However, I would like to define the content padding in my Sass sheet, e.g. in Page.html I would have:
<ion-content>
And in my Page.scss I would define:.content { padding-top: 16px; }
I was assuming that this would give me the same result as using the Ionic CSS utility attribute, however with this approach the padding gets ignored, i.e. the content has no padding at all.
Can somebody explain me why this second approach of defining the content padding in the Sass file does not work?
Thanks in advance.
Posts: 1
Participants: 1