How could I remove the shadows from a navbar?
For Ionic 1 or Ionic 2? Are you looking for the CSS that you would override?
Chris
Ionic 2. I’m looking for any way to remove shadows.
Simply add
ion-header::after {
background-image: none;
}
to your page’s scss file. You might want to apply in a more global fashion
Some other variations that you might want to override are:
ion-header::after, [tabsPlacement=“top”] > ion-tabbar::after, ion-footer::before, [tabsPlacement=“bottom”] > ion-tabbar::before
I’m using Beta 11 and this is what I did to get rid of the shadows -
<ion-header no-shadow>
<ion-navbar>
<ion-title>Title</ion-title>
</ion-navbar>
</ion-header>
ionic 3:
<ion-header no-border>
</ion-header>
Removes both the border and the shadow.
how to set it for all header accross pages
@neomib Super great solution. thanks
no-border
works great! no-shadow
didn`t worked for me. Thank you
Thank you man, your code works for me.
work for me in ionic 4 Tanks
This works on ionic 4 too, thanks!
Thanks working fine in ionic 5 also
In ionic 5 you can do it like this (simplest and cleanest way):
<ion-header class="ion-no-border">
{...}
</ion-header>
<ion-footer class="ion-no-border">
{...}
</ion-footer>
Thanks. I never think it is a “border” as it is shadow in android.
Just add class=“ion-no-border” for ionic 5 , Works fine !