25.12.2020, 07:45
Hi,
Trying to create a sticky header, but somehow the z-index property is not respected.
I have added an additional class to the items I want to stick to the top of the screen and added a fixed position and z-index of 1000
to the custom CSS.
But the other items on the screen e.a objects, labels, etc. which seems to have a z-index of 80, still scroll over my sticky header.
Even tried it via custom JS, so the DOM is created and after that alter the CSS properties. But still no effect.
Find it also strange that when you change something about an object or label, for example, the order of the items in the HTML changes.
Trying to create a sticky header, but somehow the z-index property is not respected.
I have added an additional class to the items I want to stick to the top of the screen and added a fixed position and z-index of 1000
to the custom CSS.
But the other items on the screen e.a objects, labels, etc. which seems to have a z-index of 80, still scroll over my sticky header.
Even tried it via custom JS, so the DOM is created and after that alter the CSS properties. But still no effect.
Find it also strange that when you change something about an object or label, for example, the order of the items in the HTML changes.