[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

make a div moveable over the whole page on a top layer

Posted on 2014-08-28
2
Medium Priority
?
159 Views
Last Modified: 2014-08-28
I have this code... in combination with query, works perfect!, but i need to make the div on a top layer moving over the whole page, i don't want any other tag in the page to be affected, i want to this div to move on top of all of them

echo '<div id="draggable" class="ui-widget-content"><div class="chat">
            <div class="messages"></div>
            <textarea class="entry" placeholder="Entre el mensaje aqui"></textarea>
        </div></div>
        <script src="js/chat.js"></script>';

Open in new window


any idea?
0
Comment
Question by:joyacv2
2 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 40290403
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>';

Open in new window

0
 
LVL 1

Author Comment

by:joyacv2
ID: 40290599
Hi,

Works perfect, i will give you the points and open and additional question with this code! Thanks!!!!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month20 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question