joyacv2
asked on
continue to question of moving div
echo '<div id="draggable" class="ui-widget-content" style="position:absolute;t op:0px;lef t:0px;z-in dex:9999;" ><div class="chat">
<div class="messages"></div>
<textarea class="entry" placeholder="Entre el mensaje aqui"></textarea>
</div></div>
<script src="js/chat.js"></script> ';
is possible to make this always visible when i scroll down and appears initially at the top right of the page?
<div class="messages"></div>
<textarea class="entry" placeholder="Entre el mensaje aqui"></textarea>
</div></div>
<script src="js/chat.js"></script>
is possible to make this always visible when i scroll down and appears initially at the top right of the page?
ASKER
Hi,
Works in the function of always visible, but alter the top layer initially that you provide, what i can do?
Works in the function of always visible, but alter the top layer initially that you provide, what i can do?
add a class to your div for example : mysticky
remove the : z-index:9999;
and add this css file or in header :
remove the : z-index:9999;
and add this css file or in header :
.mysticky {
z-index:9999 !important;
}
ASKER
don't work,
the only thing that alter the code that you provide, is the absolute part, it adds the div in top of the page but alter the initially absolute position
the only thing that alter the code that you provide, is the absolute part, it adds the div in top of the page but alter the initially absolute position
ASKER
this seems that the sticky jquery can be modified, but i don't know how
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try it scrolling the page, you will see the top div are not moving away