http://www.nabble.com/file/5995/threecolumnfooter.html threecolumnfooter.html
Test that file, doesn't use the dimensions plugin but you'll figure it out. It handles windowresize, but I didn't find a good way to catch a text resize, so in this example the placeFooter function calls itself after 100ms (which is a TERRIBLE way to solve it). Found an article on http://alistapart.com/articles/fontresizing alistapart.com about a better (I think) way for solving textresize matters, but didn't have the time to read through it. Maybe someone here has some experience in this? Anyways, hope it helps //Kristinn deadguy wrote: > > The CSS I can handle. It's the writing of the jQuery function I need > that I can't do. For convenience's sake, I'll paste my message again. > > Here's what I *want* to do: I want to have jQuery reposition a footer > below a div which has no height (because all its children are > absolutely positioned). This needs to happen both on window load and > resize (possibly even with unhiding content?), in order to keep the > footer at the bottom of any columns which change in size. > > Considering that the dimensions plugin doesn't seem to have any > facility to tell me where the bottom of an element is, I think that I > need to: grab the height and top offset from the children of > #content; add the top offset and height of each child together; > determine which child has the greatest total height; and finally set > the top of the footer to the result. > > I am just not sure how to go about this. I've managed to get the > height of any one container, and set the top of the footer to that, > but of course, it's not down far enough, as I don't have the top > offset and such. I can't figure out how to get only the top offset > from the dimensions plugin - it hands me an array, and I can't seem > to cull just the second element out of it. > -- View this message in context: http://www.nabble.com/position-clearing-ala-Shaun-Inman-tf3035522.html#a8681891 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
