I want to put ion-img in center of screen.
Currently doing this
In html
<ion-content adding>
<div class="center">
<ion-img src="imgename" class="ion-align-self-end"></ion-img>
</div>
</ion-content>
in Scss
.center {
display: block;
margin: auto;
width: 50%;
}
Current Behaviour: Image is in center but it is top of screen
Expected Behaviour: It should be in center of screen.
Tried to use
https://beta.ionicframework.com/docs/layout/css-utilities#flex-properties but not luck.
Testing on iPhone X simulator.
Thanks