document.viewport is your friend http://prototypejs.org/api/document/viewport
var screen_size = document.viewport.getDimensions(); $(div).setStyle({ position: 'absolute', top: '0px', left: '0px', width: screen_size.width + 'px', height: screen_size.height + 'px' }); that ought to do it cheers -- mona [EMAIL PROTECTED] On Fri, Nov 21, 2008 at 1:47 PM, Malolillo <[EMAIL PROTECTED]> wrote: > > hello, > I have a DIV and I would like that to click on a button, the div fill > the screen. > Is this possible? > > Thank's > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---