Freepages-Help-L Archives

Archiver > Freepages-Help > 2012-03 > 1331158399


From: "Barry Carlson" <>
Subject: Re: [FreeHelp] freepages footer in the wrong place
Date: Thu, 8 Mar 2012 11:13:19 +1300
References: <1331064783.99400.YahooMailNeo@web125501.mail.ne1.yahoo.com><6F9074137B4C45D2AE1B926F2558048F@VirtualXP27465><Pine.WNT.4.64.1203071219110.584@nagrp>


On Thursday, March 08, 2012 6:38 AM
Jim wrote:-

>> However, I do have a small JavaScript that measures the total depth of
>> the page and adds that as a "height" in an outer containing div.
>
>
> Barry,
>
> Do you have a pointer to a page where this is used?
>
> I suspect problems where a user-specified minimum font size is defined in
> the browser's configuration.
>
> Also problematic in situations where javascript is disabled, but we've
> been through that already :-)
>
-------------------------
Jim

I actually have some JavaScript variants for measuring visible page height +
page depth, and a test page using Ann Scott's page is at:-

http://freepages.rootsweb.ancestry.com/~bristowe/test/ann-scott.html

On checking Ann's orginal page, I see that she has had problems placing the
script, and I'll get round to sorting that out with her shortly.

My preference is to use the following script -

http://freepages.rootsweb.com/~bristowe/test/depth-check.js

- to measure the actual page depth locally, and then include the value shown
by the Alert in your CSS, e.g.

#userContentFP {
position:relative;
height:3066px;
}

No need to place the script on the server, and it will only be effective
locally to provide you with an updated value for your CSS if the page is
changed.

I haven't checked what impact a defined minimum font-size will have, but the
zoom / ctrl+ feature gets catered for reasonably well.

Barry



This thread: