Thanks much, Paul! That worked a charm. Essentially what I'm doing is attempting to place a DIV, among other content, in a page with a fixed masthead and footer. If this DIV's contents make the page longer than the available screen real estate, I want the DIV to become scrollable (using overflow:auto). The trick is that the other content is variable, so I'm working out a means to manipulate the max-height of the DIV accordingly (available screen real estate minus the total of the dimensions of the other content). With the plugin you've pointed me to, I've got it working great with Firefox.
Now, if only IE would behave properly ... ;) -------------- Original message ---------------------- From: "Paul Bakaus" <[EMAIL PROTECTED]> > Hi Kevin, > > there is, since today ;-) Get new brand-new dimensions plugin out of the SVN > trunk at http://jquery.com/dev/svn/jquery/src/dimensions/dimensions.js > > With this included, you can use the method (window).height() and > (window).width() to get the viewport of the browser (cross-browser!). > > Paul > > 2006/9/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > Greetings, all. > > > > I suspect I'm overlooking something fairly obvious in my perusal of the > > documentation, but is there an easy way to determine the width and height of > > the available screen real estate (that is, the viewable area of the browser, > > not the document dimensions) with JQuery? > > > > Many thanks! > > Kevin > > > > _______________________________________________ > > jQuery mailing list > > [email protected] > > http://jquery.com/discuss/ > > > > > > -- > Paul Bakaus > Web Developer > ------------------------ > Hildastr. 35 > 79102 Freiburg _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
