[thelist] Relative layers (DIVS)

Duncan O'Neill dbaxo at ihug.co.nz
Mon Jul 22 03:55:01 CDT 2002


David Rafferton wrote:
> I have a page-
> http://www.vidmandesign.com/multimedia-trt.html
> with a table centered. In this table I have a series of layers
> on top of each other (with visible/hide links).
>
> Now because these layers have to line up with a centered
> table I am positioning them relative. The only unfortunate
> result of this is it makes the page length as long as the total
> of all the layers, layed end to end (approx 2000px!!).
>
> If you scroll down to the bottom of the page you will note that I have
> made fun of the extra long page. However I would rather not have to do
> this in the first place.

I haven't tested this, but you may get better
results from toggling between 'display:none'
and 'display:block', rather using 'visibility:hidden'
and 'visibility:show' in your MM_showHideLayers
function.

Using the visibility property, the element is
still on the page, which accounts for its
length. Using the display property, the elements
won't be on the page until they're called.

hth,

--
=====================================================
Duncan O'Neill
"Smith The Reporter"
http://homepages.ihug.co.nz/~dbaxo/urban_legend.htm
=====================================================




More information about the thelist mailing list