css - Ionic 3 - float image to the right side of container -


my app looks this.

notice header image left aligned code. float right. how fix it?

<ion-slides direction="vertical" speed="1000" slidesperview="1">   <ion-slide  class="site-slide"  style="background-color:#2298d3">     <ion-card style="height:300px;float:right">       <img src="http://www.segalpetroniru.com/images/consulting-services-hero-image-secondary.jpg" />     </ion-card>   </ion-slide> 

please try this:

.swiper-slide img {     width: auto;     max-width: 100%;     float: right;     height: auto;     max-height: 100%; } 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -