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

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

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: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Andy,

Glad to hear things are sorted out now!

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

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

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

Return to “Issues”