Background color or image for mobile app

How can i change the background color or set an image to my mobile app? y tried to put in the theme css:

body {
   background-image:linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), url("/TravelUp_APS/img/imagenfondo.PNG"); 
}

Adrian,


You can check this forum discussion:

https://www.outsystems.com/forums/discussion/45926/how-can-i-sue-a-background-image-to-header-and-content-for-mobile-app/

You have access to an oml with an application example.



Best regards,


João Delgado


Hi,

I guess it should work if:

  • Image was deployed to target directory
  • you correct your css to:

body{

background-image: url('img/Caves.jpg');

background-size:  100%;

    background-attachment:  fixed;

    overflow:  scroll;

}

If not, check the help here.

If everything fails, you always have the option of creating a container with the image and then in Container Style use position: absolute and a high z-index.

Cheers,
Nuno Verdasca