# Changing ionic float input color

**URL:** <https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176>\
**Category:** ionic-v3\
**Created:** [January 4, 2017, 5:18pm UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176 "2017-01-04T17:18:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drdpedroso](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@drdpedroso](https://forum.ionicframework.com/u/drdpedroso)\
**Post date:** [January 4, 2017, 5:18pm UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176/1 "2017-01-04T17:18:39Z")

</div>

I need to change the color for my ion-input and ion-label (from default black to white). I`m doing something like this:

```
<ion-item style="color:#ffffff">
  <ion-label floating style="color:#ffffff">Password</ion-label>
  <ion-input [(ngModel)]="user.password" name="password" type="password" #password="ngModel" required >
  </ion-input>
</ion-item>

```

Tha label color changes,but the bottom line of the input dosen’t. Looking at the ionic docs, I didn’t found something specific for this. Can someone help me?

---

<div class="post-metadata">

**Author:** ![jinglelin](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jinglelin](https://forum.ionicframework.com/u/jinglelin)\
**Post date:** [January 16, 2018, 5:49am UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176/2 "2018-01-16T05:49:18Z")

</div>

Hello, you can find the solution from the **developer tools** of the browser.  
in iOS:

```auto
.item-ios{
        color: black; //floating input label color
    }

```

in android:

```auto
.item-input-has-focus .label-md[floating], .input-has-focus .label-md[floating]{
        color: black; //label color when focusing
}
.item-input .label-md{
        color: black; //label color
}

```

---

<div class="post-metadata">

**Author:** ![flycoders\_sourav](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flycoders\_sourav](https://forum.ionicframework.com/u/flycoders_sourav)\
**Post date:** [January 16, 2018, 6:59am UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176/3 "2018-01-16T06:59:46Z")

</div>

> [@jinglelin](#):
>
> .item-input .label-md{  
> color: black; //label color  
> }

but textbox underline color not change. how to change ?please help me any one

---

<div class="post-metadata">

**Author:** ![jinglelin](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jinglelin](https://forum.ionicframework.com/u/jinglelin)\
**Post date:** [January 16, 2018, 7:11am UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176/4 "2018-01-16T07:11:22Z")

</div>

Do you mean input underline?  
if yes, please try:

```auto
.item-md.item-input .item-inner {
        border-bottom-color: black !important;
    }

```

---

<div class="post-metadata">

**Author:** ![flycoders\_sourav](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flycoders\_sourav](https://forum.ionicframework.com/u/flycoders_sourav)\
**Post date:** [January 16, 2018, 8:04am UTC](https://forum.ionicframework.com/t/changing-ionic-float-input-color/75176/5 "2018-01-16T08:04:42Z")

</div>

Thank you so much for your effort.its work fine for me
