For instance, to center the layout without resorting to an extra div. Anyway, the problem arose in a real site my company just developed.
http://www.jmafstore.com/catalogo/detalhes.php?id=374 (Portuguese only, unfortunately). Click the image and notice the overlay don't include the header. I know I could have done it differently and have it work, but it would be really elegant if it worked in that situation too. On Fri, Apr 10, 2009 at 6:03 PM, Karl Swedberg <[email protected]>wrote: > No, you're not the only one. I, too was wondering why someone would need to > position the body. > > --Karl > > ____________ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > > On Apr 10, 2009, at 12:02 PM, Ricardo wrote: > > > Regardless of jQuery support or not, I am the only one who thinks > positioning the body is kind of weird? what's between the body and the > viewport limits, limbo? > > On Apr 9, 5:30 pm, Fernando Ferreira > <[email protected]> wrote: > > Take a look at the test case I posted on > http://dev.jqueryui.com/ticket/4438, it outlines the crux of the > > problem. > > > If it was only a local problem I would certainly fix it locally, but this > > assumption of the origin point of the body being the same as the origin of > > the viewport leads to several problems with anything that is positioned > > relatively to the body (using position: absolute in the childrens on a body > > that itself has postion: relative), and it happens in lots of places on > > jquery ui, for instance. > > > I will try to craft a test case for something that happens on jquery > itself, > > instead of only jquery ui. > > > On Thu, Apr 9, 2009 at 7:54 PM, Matt Kruse <[email protected]> > wrote: > > > On Apr 9, 1:42 pm, Brandon Aaron <[email protected]> wrote: > > Unfortunately it just isn't as simple as that. A positioned body element > > directly affects how the browser calculates the offsetTop/Left properties > > of > > child elements. > > > In what cases? Just curious. > > > I suppose it depends on the browser and the exact layout/objects in > > question, but I've used this solution several times and it's been > > sufficient for me. It may be enough for the OP. > > > Matt Kruse > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
