Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Border-bottom I can't remove

I'm stuck in IONIC 2 for removing something like a border-bottom on ion-item tag as presented in the picture attached.

Picture of the border I want to remove

My code is below:

<ion-header>
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-item class="header-item">
      <ion-avatar item-start>
        <ion-icon name="add-circle"></ion-icon>
      </ion-avatar>
      <ion-title>Gallerie</ion-title>
    </ion-item>
  </ion-navbar>
</ion-header>

And my CSS below:

.header-item {
        background: transparent;
        border: none;
    }

Have you any idea? Thanks for your help!

like image 338
Fred Avatar asked Jun 19 '26 13:06

Fred


1 Answers

Just like you can see in in the docs, you can use the no-lines attribute to remove that line:

<ion-item no-lines>
  Item with no border
</ion-item>
like image 151
sebaferreras Avatar answered Jun 22 '26 02:06

sebaferreras



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!