Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Use image as <Page /> background
-
Is it at all possible to use an image as a <Page /> component background in
react-onsenui
?I’ve tried various combinations of inline and external styles, but nothing works.
I am working on a
Meteor
project.
-
You can set the background image of a page by setting the
background-image
CSS property:.page__background { background-image: url('some-image.jpg') }
That will set it for all pages. To set it for a specific page you should use an ID and select the element with class
.page__background
that is a child of your page ID.
-
You could put an example for a single page using jquery?
-
This is all CSS so you don’t need jquery or even JS for this. You literally just need to use the CSS I posted.