[thelist] Help with layers in NN 4.6

Erika Chang echang at redhotchips.demon.co.uk
Tue Jul 10 05:15:58 CDT 2001


>for example in if you go to http://devel.bluetruck.net/about.php  the first
>2 links for vision and people work fine. however the location and employment
>layers display at the bottom of the page and do not function with the links.

Seem to be two problems:

1) Using reserved word "location" as class name and id. This confuses the browser -- is it location as in url of current page or is it your layer named "location"
=> rename "location" layer, eg cLocation

2) Style specification in the content of the layer before the 2 problem layers (ie "people" layer) seem to be preventing NS from recognizing the subsequent layers as layers. Try testing document.layers.length at the end of the page and you'd get 3 rather than 5.
=> remove style attribute from the "people" layer's content P & DIV tags and put it in the stylesheet instead, e.g.
.people P {margin-left:10pt; font-size:10pt;}
.people DIV {font-size:7pt;}



Erika




More information about the thelist mailing list