Hello i want to show the full image in a specified height div and set it a a background to the div. What i ve tried so far crops the image and doesnt show the full height of the image. Any help?
HTML:
<div *ngIf="item.type==='P'" [ngStyle]="{'background-image': 'url(' + item.image_path + ')','background-repeat':'no-repeat',
'height':'400px','width':'100%','border-bottom-left-radius': '5px','border-bottom-right-radius': '10px'}">
<ion-row>
<ion-col col-4>
<div>
Some text
</div>
</ion-col>
<ion-col col-8>
<button ion-button round outline>
some button
</button>
</ion-col>
</ion-row><br>
<span style="background:none;float: left">
<button ion-button outline round padding color="light">
<h1>name</h1>
</button>
</span>
</div>