The Dreamweaver
dreamweaver layer uses the eight law
Of course, these are not the true laws, but some helpful advice that keeps you from being trapped in the use of layers. There are nine laws, we have to streamline one, and the following eight:
1. If you want to nest layers, never use a multiple parent layer, you should share a single parent layer. If you must use a nested layer that is not fully qualified in the stylesheet, do a regular check in the netscape4x.
2. Always place the text in a table in the layer-the table should be absolute size (in pixels, not a percentage) and not larger than the layer, although nested tables in the primary table can be set to a relative percentage size. Doing so prevents nc4xx from resizing the text to an unexpected position when the window size changes.
3. Never place the layer in the table. Netscape 4x will not be able to correctly understand the layers in the table.
4. Always use Netscape Resize Fix this plugin on any page with a layer or CSS style.
5. Do not expect the absolutely positioned layer to remain aligned with the centered table or page content when the browser window size or screen resolution changes. There are plug-ins that can be used to dynamically implement this effect.
6. Do not attempt to place scrollbars (with the overflow attribute) in the layer-use a DHTML scroll or projectseveniframe technology instead, and for Netscape 4.x users, you can set up a specific pop-up page in the IFRAME.
7. Never give a layer and an image the same name-each layer should have its own unique and distinct from the other elements on the page (in fact, you should not let two elements with the same name appear on the same page).
8. Do not apply events/behaviors directly to the layer. They will not work across browsers. Apply them to the content (links or images) in the layer rather than to the layer itself.