ONLINEPROOFINGSERVICE.COM

brand management software - www.onlineproofingservice.com

Menu


be programmed by using DHTML (Dynamic HTML) and JavaScript to create complex animations and transitions on your pages. Chapter


9 covers Cascading Style Sheets and Dynamic HTML in greater detail. Dynamic HTML is made possible through scripting languages that use the Document Object Model to create dynamic effects and global styles. Think of Cascading Style Sheets as HTML on steroids. Think of Dynamic HTML as HTML on rocket fuel. 202 Part III: Advancing Your Site Working with the CSS Panel The CSS panel has two panes when in the All mode: All Rules and Properties. The All Rules pane shows all the styles defined for the page you have open, whether the styles are internal or contained in an external style sheet. If you select one of the pages styles, its properties are shown in the Properties pane, where you can easily add, edit, and remove existing styles (see Figure 8-2). When you first open this panel, you need to click the plus sign (+) (or triangle on the Mac) that is next to the <STYLE> tag in the CSS panel to see the styles associated with the page. (If you dont see a style tag or any styles, no styles are associated with the page.) Click the Current button to show the Current mode. Use the Current mode to see only the style of an item currently selected in your open document. This mode has three panes: Summary for Selection, Rules, and Properties (see Figure 8-3). In the Summary for Selection pane, you see the rules currently defined for this style. In the Rules pane, you see all the rules that influence the currently selected element; this pane is exceptionally useful when you have created a complicated layout. In the third pane, you can edit, add, or delete properties of the current rule. Figure 8-2: The new CSS panel, showing all the styles associated with the open document. Chapter 8: Cascading Style Sheets 203 On the left-hand side of the panel, you see the Show Category View, Show List View, and Show Only Set Properties icons. These apply to the Properties panel in both the Current and All modes. Heres how to use these: _ Show Category View: In the category view of the Properties view, Dreamweaver displays all the properties available to use for a rule, organized by the category to which they belong. For example, all the font properties are grouped into a Font category. _ Show List View: In the list view, Dreamweaver displays all the properties available to use for a rule, organized alphabetically. _ Show Only Set Properties: When you define a new rule, you set certain properties, but of course you can set many more. In this view, Dreamweaver displays only those properties you defined for this rule. The second set of icons, on the bottom-right of the CSS panel, includes icons that are useful no matter what mode the panel is in. From left to right, these icons represent Attach Style Sheet, New CSS Rule, Edit Style Sheet, and Delete CSS Rule (this one resembles a trash can). The easiest way to start a new style sheet is to create a new style. Click the second icon on the bottom left (New CSS Rule) of the CSS panel. Attach Style Sheet Show Category View New CSS Rule Edit Style Sheet Delete CSS Rule