Monday, November 19, 2007

How to create IDs in Document

How to create IDs in Document

To create IDs in Document

Unlike classes, which you can apply to an unlimited number of elements, IDs let you embed a specific style for a unique paragraph or range of text in your document. Use IDs for a headline with special formatting or any other text that needs unique treatment.

To create a style based on an ID:

Step 1.

  • With the Style Sheet window in the foreground, click the New Ident in the style sheet toolbar. The new style is listed under ID with its name selected.

Step 2.

  • In the Basics tab of the CSS Selector Inspector, type a unique ID name in the Name text box—for example, #my-header-id, and then press Enter.

  • You can use any alphanumeric character string with a leading pound sign (#) as the ID name. ID names may not contain spaces.

Step 3.

  • In the CSS Selector Inspector add style properties, you can see Defining style properties.

Step 4.

  • Applying the ID style requires your hand-edit source code of your page.


No comments: