# Image won't display

**URL:** <https://forum.ionicframework.com/t/image-wont-display/108537>\
**Category:** ionic-v3\
**Created:** [October 11, 2017, 3:49pm UTC](https://forum.ionicframework.com/t/image-wont-display/108537 "2017-10-11T15:49:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IlayKa](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@IlayKa](https://forum.ionicframework.com/u/IlayKa)\
**Post date:** [October 11, 2017, 3:49pm UTC](https://forum.ionicframework.com/t/image-wont-display/108537/1 "2017-10-11T15:49:30Z")

</div>

I’m new to Ionic and trying to display a card with image in the background (just as the docs has).  
I copied what is written in the docs but the image won’t display in the card.  
How can I know what went wrong?  
This is my html:

```auto
<ion-header>
  <ion-navbar>
    <ion-title>
      test application
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content class="card-background-page">
  <ion-card>
    <img src="src\img\saopaulo.jpg"/>
    <div class="card-title">Demo Title</div>
  </ion-card>
</ion-content>

```

I have the img in the project itself for now, and I just copied the path.  
this is scss:

```auto
.card-background-page {
    ion-card {
    position: relative;
    text-align: center;
    border-radius: 10px;
  }

  .card-title {
    position: relative;
    top: 36%;
    font-size: 2.0em;
    width: 100%;
    font-weight: bold;
    color: #fff;
  }
}

```

---

<div class="post-metadata">

**Author:** ![Sidharth\_1999](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Sidharth\_1999](https://forum.ionicframework.com/u/Sidharth_1999)\
**Post date:** [October 11, 2017, 3:52pm UTC](https://forum.ionicframework.com/t/image-wont-display/108537/2 "2017-10-11T15:52:31Z")

</div>

> [@IlayKa](#):
>
> \<img src=“src\img\saopaulo.jpg”/\>

Why have you used backslashes? Try this maybe :

```
 <img src="src/img/saopaulo.jpg"/>

```

---

<div class="post-metadata">

**Author:** ![IlayKa](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@IlayKa](https://forum.ionicframework.com/u/IlayKa)\
**Post date:** [October 11, 2017, 4:05pm UTC](https://forum.ionicframework.com/t/image-wont-display/108537/3 "2017-10-11T16:05:53Z")

</div>

Thanks, I did try but it still won’t show.

---

<div class="post-metadata">

**Author:** ![Sidharth\_1999](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Sidharth\_1999](https://forum.ionicframework.com/u/Sidharth_1999)\
**Post date:** [October 11, 2017, 6:25pm UTC](https://forum.ionicframework.com/t/image-wont-display/108537/4 "2017-10-11T18:25:29Z")

</div>

You’re already in the src folder when you specify the path. Try this :

```
<img src="img/saopaulo.jpg"/>
```

---

<div class="post-metadata">

**Author:** ![IlayKa](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@IlayKa](https://forum.ionicframework.com/u/IlayKa)\
**Post date:** [October 12, 2017, 9:13am UTC](https://forum.ionicframework.com/t/image-wont-display/108537/5 "2017-10-12T09:13:07Z")

</div>

Thanks, but it still does not work.

---

<div class="post-metadata">

**Author:** ![MustafaLokhandwala](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MustafaLokhandwala](https://forum.ionicframework.com/u/MustafaLokhandwala)\
**Post date:** [October 12, 2017, 9:19am UTC](https://forum.ionicframework.com/t/image-wont-display/108537/6 "2017-10-12T09:19:37Z")

</div>

try this

```auto
<img src="assets/img/image_name.jpg">

```

put your image to folder src/assets/img

if the img folder is not there then create a new one

---

<div class="post-metadata">

**Author:** ![IlayKa](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@IlayKa](https://forum.ionicframework.com/u/IlayKa)\
**Post date:** [October 12, 2017, 9:45am UTC](https://forum.ionicframework.com/t/image-wont-display/108537/7 "2017-10-12T09:45:13Z")

</div>

Thanks, works great 😃 .
