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.
On Jan 28, 2007, at 11:32 AM, Olaf Bosch wrote:
> Alex Calara schrieb:
>>> On Jan 28, 2007, at 2:43 AM, Olaf Bosch wrote:
>>> Try, look at the demension-plugin, let them read the height of the
>>> colums.
>>> The longest use to set the footer.
>>>
>>> Set this variable in the Script to the footer:
>>> top: LONGEST-COLUMN-HEIGHTpx;
>>>
>>>
>>> in your CSS
>>> #footer{
>>> position:absolute;
>>> left: /* what you will */;
>>> width: /* what ever */;
>>> ....
>>> }
>>
>>
>> I don't think you read the explanation of my problem, and instead you
>> read my reply to Jake (which was explaining why his solution wouldn't
>> work for me). Look up a couple posts, and you'll see my full
>> explanation.
>
> Sorry i see this Problem, you become not the footer at the bottom
>
> The Window, all 3 DIV are absolute:
> ___________________
> | DIV1 | DIV2 | DIV3 |
> | | | |
> |_____| |_____|
> |_____| ----------- Window cane here end
> ___________________
> | #footer | ----------- or here or other pos.
> |__________________|
>
> I hope is visual to see :/
>
> Then you must give the Footer what i written.
>
> Sorry when i posted shit, bad english understanding.
>
> Otherwise, cane you post a link to a demo of the Problem?
>
>
> --
> Viele Grüße, Olaf
>
> -------------------------------
> [EMAIL PROTECTED]
> http://olaf-bosch.de
> www.akitafreund.de
> -------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/