so how do set the left and top..(even when i scroll the scrollBar)
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
machine elf and Stefan Kendall are both very close but both incomplete so you just combine each as so (machine elf didn’t account for scrollbars and Setfan didn’t account for the height and width of the div itself):
Assuming your id for your div is “myDiv”
You may also need to set the css of your div to a fix height and width and its display is set to “block”. You can do this with JQuery as well.
Also, you can combine all these into one long string.