I have made a sliding (S) window with jQuery animate()
function. i.e. it slides left and right.
$.animate({width:'toggle', opacity:'toggle'},2000,'swing',function(){
// ...
})
It uses the following CSS when open.
position:absolute;
height: 496px;
width: 694px;
left:36px;
top:124px;
The problem I am facing is: on screens with different widths the window starts at different locations. I am supposed to show it adjacent to another window (A). On my laptop it works fine. On client side, it overlaps half of window A. I believe it is due to position:absolute;
but I don't know how to solve it. Please help! Thanks!