Page 1 of 1

Cant create background for pages in IONIC

Posted: Wed Apr 05, 2017 6:11 am
by Deon

Hi

I have a background that I want to apply to all pages. I have set the css of the content area in the Index page. However it does not pull through to the underlying Pages.

When I set the page css on individual pages it works.

Please provide syntax that will work when doing this on the index page.


Cant create background for pages in IONIC

Posted: Wed Apr 05, 2017 4:46 pm
by Serhii Kulibaba

Hello Deon,

Please add a custom CSS class "myView" to the element aio-empty-screen on the index page and add a CSS to the custom CSS file:
pre.myView .aio-empty-screen{
background:red;
}/pre


Cant create background for pages in IONIC

Posted: Thu Apr 06, 2017 5:07 am
by Deon

Perfect, thank you.