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

Background image not working

$
0
0

@Poseyyy wrote:

Hello, I’m trying to use an image as background of my home page.
Nothing works…
Here’s my code :

<ion-header>
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>Test</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding class="bg-image">

  <ion-list>

    <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">
        <ion-icon [name]="item.icon" item-left></ion-icon>
        {{item.title}}
    </button>

  </ion-list>

</ion-content>

And my scss :

page-home {
    bg-image{
        background-image: url('assets/img/ak3.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



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