How To Set The Background Color of the Content part of an IONIC page

This forum contains topics that were moved from Get Satisfaction
Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

How To Set The Background Color of the Content part of an IONIC page

Post by Andy Parker »

Hi Team,

any idea how to set the Page/Content area of the IONIC4 page please?

I've tried setting the class to the following, but no joy.

.stdBackground {
background: linear-gradient(#caf0cf, white,#caf0cf) !important;
}

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

How To Set The Background Color of the Content part of an IONIC page

Post by Andy Parker »

typical, figured it out 5 mins after posting:

set this in the SCSS Variables, under themes.....

--ion-background-color: linear-gradient(#caf0cf, white,#caf0cf);

Serhii Kulibaba
Posts: 136
Joined: Tue Aug 27, 2013 1:47 pm

How To Set The Background Color of the Content part of an IONIC page

Post by Serhii Kulibaba »

Hello Andy,

Glad to hear things are sorted out now!

Galyna Abramovych
Posts: 59
Joined: Tue Mar 22, 2016 6:03 pm

How To Set The Background Color of the Content part of an IONIC page

Post by Galyna Abramovych »

Glad you could figure that out and thanks for sharing this with our community!

Post Reply