How to have a sticky element that stops before end of viewport
I have a headline and a thead that need to be sticky, but they shouldn’t stay sticky when the last row comes up. Instead, they should stop being sticky so that the last row of the tbody is always visible and is the last element that scrolls away.
How can I make an element behave like an inline element after a line break, if its parent element has display: flex?
How can I make an element behave like an inline element after a line break, if its parent element has display: flex? I need to ensure that there is no empty space between the icon and the text after a line break.