I need the header on my website to stay fixed in place, even when users scroll or enter information into a form:
<ion-card class="fixed">
<ion-card-header>
Welcome
</ion-card-header>
</ion-card>
The .fixed
CSS rule looks like this:
.fixed {
position: fixed;
top: 0;
width: 100%;
padding-right: 1em;
}
However, I am experiencing an issue where the div disappears as soon as I start scrolling.
You can access the code on StackBlitz.