Viswa Viswa - 1 year ago 261
CSS Question

ionic 2 - Using thumbnails and avatar inside ion-slide

In, Ionic 2, inside 'ion-slide' doesn't render avatar and thumbnail images in avatar and thumbnail sizes, instead it displays in bigger sizes.

My code:

<ion-item class="item item-trns item-stable">
<ion-avatar item-left>
<img src="" class="avatarImage"/>
<ion-avatar item-right>
<img src="" class="avatarImage"/>

.avatarImage {
width: auto;
height: auto;

Cannot we use avatar inside ion-slide in ionic 2?

Ash Ash
Answer Source

you need to change image width from width:100% to width:auto.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download