Adobe GOLIVE CS2 User Manual page 337

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

ID styles
Unlike classes, which you can apply to an unlimited number of items in a page, an ID style lets you apply a specific
style only once in a document. Use IDs for a unique paragraph or range of text, such as a headline, warning message,
or other text that needs unique and very restrictive treatment to distinguish it from other content in the page.
GoLive layers use ID styles to define their properties. If your document contains layers, the document's CSS Editor
lists an ID style for each layer. You can use the CSS Editor to edit many layer properties, such as border size and style,
that are not available through the Layer Inspector. (Many of these properties are not available in the Inspector because
some browsers may not consistently support them at this time.)
To create an ID style
In the CSS Editor, do one of the following:
1
Click the Create a Style That Applies to Unique Elements button
Choose New ID Style from the Create New CSS Statements button menu.
Choose Special > CSS > New > ID Style.
Select an existing ID style, and choose Edit > Duplicate.
Select the new style in the CSS Editor, and click the Selector And Properties set
2
ID name in the Selector text box, preceded by a number sign (#) and with no spaces—for example, #myheaderid.
Important: The number sign must precede the id style's name; otherwise, the style changes to an element style and can't
be used.
3
In the CSS Editor, add style properties.
To apply the ID style, you must hand-edit the source code of your page.
4
See also
"About style properties" on page 330
"Applying styles" on page 338
Inline styles
Inline styles enable you to apply a style to a single element on a page (for example, a paragraph of text) and add a style
attribute to HTML tags (for example, <p style = "color:#fa7442">, which displays orange paragraph text). You create
and apply inline styles by using style-attribute editing in the CSS Editor. Because inline styles are attached directly to
HTML tags, they have a higher cascade precedence than other styles and override all other styles applied to the page-
-including those specified by external stylesheets. You can use inline styles with any element in a page. Because inline
styles apply to specific elements on the page, you can use them only in internal stylesheets.
To create an inline style
Select the element on the page to which you want to apply the style (for example, a table cell).
1
2
Choose Style Attribute Editing from the CSS Editor window menu.
In the Name column of the CSS Definitions tab, select the tag that corresponds to the element you selected in step
3
1 from the Style Attribute list (for example, <td>).
4
In the CSS Editor, add style properties.
.
. Type a unique alphanumeric
ADOBE GOLIVE CS2
328
User Guide

Advertisement

Table of Contents
loading

Table of Contents