I'm facing a challenge in creating a card layout with sticky elements at the top and bottom to display important information and input fields consistently. However, when scrolling through the content within the card, the sticky element at the top disappears, which is not the desired behavior.
Upon investigation, I discovered that removing the card-footer or setting the card height to auto resolves the issue. But maintaining a specific height for positioning on larger screens is necessary, and I cannot remove the footer due to its content.
I attempted moving the sticky elements outside the card-body, but this caused them to get lost on mobile devices when scrolled away.
The solutions I found from other sources were not very applicable as they mainly focused on sticky footers rather than integrating stickiness within a bootstrap card layout.