Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Ion-img in center of screen

<div class="vertical-center">
  <div class="center">
    <ion-img src="imgename" class="ion-align-self-end"></ion-img>
  </div>   
</div>

add this in css file
.vertical-center{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
Source by forum.ionicframework.com #
 
PREVIOUS NEXT
Tagged: #center #screen
ADD COMMENT
Topic
Name
7+2 =