SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 711 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


All these attributes, and others such as background color, can be assigned to a CSS style, as shown in the
following code:
#header {
position: absolute;
z-index: 1;
height: 115px;
width: 400px;
left: 100px;
top: 50px;
background: #FFCC33;
}
The CSS style is then applied to a
tag to represent an area on the page, like this:
Header content goes here.

Dreamweaver calls
tags that are drawn with your mouse AP elements; the CSS style is automatically
created and embedded in the page for you. Drawing out the same AP element results in the same CSS code,
except the selector name is automatically created for you (apDiv1, apDiv12, and so on) and the code is
embedded in the page, like this:

The
code is also added for you, sans content, like this:

Although both approaches are valid, many designers prefer to keep the CSS information in the style sheet
rather than embedded. As you see in this chapter, Dreamweaver supports both methods fully.
If you don??™t define a unit of measurement for AP element positioning, Dreamweaver defaults to pixels.


Pages:
699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723