[EMAIL PROTECTED] wrote: > Hi, > > Yesterday I got some great help on how to animate a DIV and move it from > offscreen left to the middle of the screen. My question now is I want to > slide that div to off-screen right. The complication is that I don't know > how big the user's browser is going to be. How can I slide the div > completely off screen to the right? > > Thanks, - Dave > >
The user's browser width should always be 100%. Kind of a CSS variable. Perhaps use jQuery to get that value and then shove the div off by 50%. One thing you want to watch out for is converting things to pixel dimensions so if I maximise my screen after the div has disappeared off the side I mightbe able to see it again. Use % to offset the div and you should be fine. Rob _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
