Link to home
Start Free TrialLog in
Avatar of joyacv2
joyacv2Flag for Puerto Rico

asked on

continue to question of moving div

echo '<div id="draggable" class="ui-widget-content" style="position:absolute;top:0px;left:0px;z-index: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?
Avatar of leakim971
leakim971
Flag of Guadeloupe image

this plugin is what you're looking for : http://stickyjs.com/
try it scrolling the page, you will see the top div are not moving away
Avatar of joyacv2

ASKER

Hi,

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 :
.mysticky {
    z-index:9999 !important;
}

Open in new window

Avatar of joyacv2

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
Avatar of joyacv2

ASKER

this seems that the sticky jquery can be modified, but i don't know how
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial