Creating 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:
- Click the New ID Style button
. - Select an existing ID style, and choose Edit > Duplicate.
- Select the new style in the CSS Editor, and click the Selector and Properties tab
. Type a unique alphanumeric ID name in the Name text box, preceded by a pound symbol(#) and with no spaces--for example, #myheaderid. Important: The pound symbol must precede the id style's name; otherwise, the style changes to an element style and can't be used. - In the CSS Editor, add style properties. (See Defining style properties.)
- To apply the ID style, you must hand-edit the source code of your page. (See Applying styles.)
|