ionic2 - center align radio option for iOS in ionic 3 app -


i have following code in ionic 3. have yes/no type radio button horizontally aligned. in android coming in center in ios thery coming right aligned. want make them center aligned ios well. following code:

<ion-card center>     <ion-card-header >         <ion-label >q1. programming geek?</ion-label>      </ion-card-header>      <ion-row radio-group>         <ion-col width-30>           <ion-item>             <ion-label>yes</ion-label>             <ion-radio value="1"></ion-radio>           </ion-item>         </ion-col>         <ion-col width-30>           <ion-item>             <ion-label>no</ion-label>             <ion-radio value="0"></ion-radio>           </ion-item>         </ion-col>     </ion-row> </ion-card> 

following css have modified:

   .input-wrapper{      flex: initial;     }      .card-md .item-md.item-block .item-inner {         border: 0;         justify-content: center;     } 

i have done adding following code in css:

.card-ios .item-ios.item-block .item-inner {     border: 0;     justify-content: center; } 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -