How to set background image for header?


#1

How can I set background image for the <ion-navbar> component?


Ionic 4 - Header background image
#2
.toolbar-background {
    background-image: url('')!important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#3

I Use all these methods but i am unable to change the background-image and background- color in ion-header and ion-navbar in ionic3. please help me.


#4

I think this may help i set image to my side menu header

	<ion-header padding="true" >
        <ion-toolbar color=dark >
			<ion-title  >
			<img  object-fit: cover src="../assets/imgs/logo2.png" >
			</ion-title>
        </ion-toolbar>
    </ion-header>