Now youll add more layers to the page. Youll use the first layer (banner_graphic) as a reference point for positioning the other layers. Youll also use the CSS Layer Backgrounds feature to help you position and distinguish between layers.
Dreamweaver sizes and positions the new flash_fma layer.
.
The flash_fma layer is 700 pixels wide by 166 pixels high. It is also positioned 20 pixels from the left margin of the page, and 111 pixels from the top margin of the page. You positioned this layer 111 pixels from the top margin of the page so that it would not overlap with the banner_graphic layer.
When layers overlap, youll notice that the border of one of layers (specifically, the underlying layer) is represented by a dotted a line.
Dreamweaver adds background colors to your layers. These colors are randomly selected and do not appear on the published web page. They are merely visual aids that Dreamweaver provides to help you see where layers and other kinds of block elements appear on the page.
You can optionally disable CSS Layout Backgrounds again by selecting View > Visual Aids and deselecting CSS Layout Backgrounds.
Remember to click Draw Layers in the Insert bar each time before you drag a new layer.
TIP |
|
When you select a layer, be sure to click somewhere on the layer border or the layers selection handle, and not inside the layer. You can be sure the layer is selected if you see resize handles on the borders of the layer, and width and height properties in the Property inspector. You can also select a layer by clicking its name in the Layers panel (Window > Layers). |
NOTE |
|
When you resize the center_content layer to 350 pixels high, it will overlap the remaining layer on the page. Before you proceed with the next step, move the remaining layer below the center_content layer by selecting the remaining layer and dragging the selection handle to the bottom of the page. |
When youre finished, your page should look something like this:
You can check your position from time to time as you drag the layer by clicking outside the layer to deselect it.
TIP |
|
You can also move selected layers one pixel at a time by pressing the arrow keys on your keyboard. Try using the Property inspector to align the header layer 20 pixels from the left margin of the page. Then use the Up Arrow key to move the layer up until it touches the bottom border of the flash_fma layer. |
TIP |
|
You can also use the Visual Aids button on the Document toolbar to enable or disable CSS Layout Backgrounds. |