
PART TWO Techniques300
elements (AP stands for “absolutely positioned”). AP elements are HTML page
elements— div tags or any other tags (a tag is a page instruction)—that have
been assigned an absolute position through the CSS panel elds or freely on the
page. Most often absolutely positioned div tags, AP elements can be moved
freely and placed anywhere on the Web page by using x (from the left edge)
and y (from the top) coordinates. These are the kinds of AP elements Dream-
weaver inserts by default. Put the AP together with a div and you get an AP div
tag, which is, in simple terms, a layer on a Web page. AP divs essentially work
as containers for content and are programmable objects. AP divs can hold text,
images, or any other content that you can place in the body of an HTML docu-
ment. They can also be controlled with JavaScript and CSS.
AP divs enable you to lay out Web pages without struggling with HTML cod-
ing or building pages with tables. You can place AP divs in front of and behind
each other, hide some AP elements while showing others, and move AP ele-
ments across the screen. You can place a background image in one AP div, then
place a second AP div containing text with a transparent background in front of it.
You can insert tables inside AP divs to organize and control content within the AP
div. And you control the attributes of the AP div from the CSS panel. This exibil-
ity is why it is a good idea to convert tables to layers after slicing and exporting.
The AP ELEMENTS panel is where the AP divs reside. Each one can be
named descriptively. Each AP div occupies a separate, layered position on the
z-axis, which represents depth. (AP divs have a z-axis because they can be
stacked on top of one another, thus creating depth.) The AP div will also have an
assigned z-index number, which refers to the stacking order of the AP divs and
to the load sequence on the page. The top-down stacking order is represented
on the page in the same manner. The AP div at the top will have the highest
number. The highest number loads last (on top), above the others indexes.
Here are some advantages to using AP divs:
AP divs can be added and deleted easily from a Web page. •
AP divs can hold any Web asset or object. •
AP divs can be dynamically controlled using a timeline or CSS. •
AP divs can be resized, colored, and positioned to t conveniently into your •
Web page design.
Tables can be nested inside AP divs to provide extensive content control, •
and this provides an effective way to develop Web pages from scratch—
without using Fireworks to create an entire page.
98364c08.indd 300 1/15/10 1:15:09 PM