Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70862

How to set image as background?

$
0
0

@petersenyszyn wrote:

Hi there,

I'm having issues setting an image as the background for my login page. I've looked around the web for potential solutions, but nothing has worked so far. In my login.html file I have this:

<ion-content class="login-background"> ... </ion-content>

And in my app.core.scss:

@import "../pages/login/login";

.login-background {
  background-image: url("img/background.jpg") no-repeat fixed center;
  background-size: cover;
}

My image is located at www/img/background.jpg, which I believe is the correct place to put it. If anyone has any ideas as to how to make the image show, I'd really appreciate it.

Thanks!

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>