Floating label not aligned with input in Ionic 2 -
this question exact duplicate of:
in ionic2 project when using floating label, not correctly aligned input box. how can fix this?
following code:
<ion-item> <ion-label floating><ion-icon name="person" item-start></ion-icon>email</ion-label> <ion-input type="email" name="email" [(ngmodel)]="registercredentials.email"></ion-input> </ion-item>
this not duplicate question. 1 compared keeping label floating , icon fixed. alignment related question.
could please share code?
if use ion-item , ion-label this, text correctly aligned:
<ion-item> <ion-label floating>username</ion-label> <ion-input></ion-input> </ion-item>
Comments
Post a Comment