[CLOSED] Background image Style.css not being picked up in ios emulate build


#1

Nevermind, I figured out that the img url in the mobile app shouldn’t use the absolute references, changed to …/img and it worked fine.

Now if I can only figure out how to delete a post in this forum…

Basic beginner question here: I’ve modified the style.css file to add a background-image to the .pane class and the style changes are picked up when I preview using a browser or the mobile web browser on ios. However when I build and run “ionic build ios, ionic emulate ios” the background image change on style.css doesn’t show up. Is there a step that I’m missing? Should I be setting it on a class other than .pane?

.pane {
background-image: url(’/img/bg.jpg’);
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
}


#2

Not going to delete this post, as the info could be useful to others. I will close it so no one can post any knew content.
Glad to see you got everything resolved :smile:


#3