# which is the best way to obtain a fixed div on top of page and when i scroll the page it remains fixed and visible?

ziobleed
3 2

which is the best way to obtain a fixed div on top of page and when i scroll the page it remains fixed and visible?

I'm working on a custom component, reusable on more pages...

for now i've done :

 <window  width="100%"  closable = "true" position="left,top"  style="z-index : 99; position: fixed;">
<label value ="Message of the fixed" />
</window>
<vbox width="100%" >
<div hflex="1" >
content here...


The element stay fixed until the user scrolls the page down and reach the end of the custom component. I want that the element windows stays fixed during the scrolling of the whole page...

delete retag edit
Be the first one to answer this question!
[hide preview]