FP2000: How to Create a Style Class or ID Within a Style Sheet

ID: Q233096


The information in this article applies to:


SUMMARY

This article describes how you can use FrontPage 2000 to define classes and IDs within Style Sheets.


MORE INFORMATION

To create a class, follow these steps:

  1. On the Format menu, click Style.


  2. Click New Style, or choose to modify an existing style.


  3. In the Name box, type a new name preceded with a period (.). For example:


  4. 
    .myClass 
To create an ID, follow these steps:
  1. On the Format menu, click Style.


  2. Click New Style, or choose to modify an existing style.


  3. In the Name box, type a new name preceded with the number sign (#). For example:


  4. 
    #myId 
To apply a class to the page, select the class from the list of formats on the Formatting toolbar. The class will be applied to the base style which you have selected.

To apply an ID to the element, switch to HTML view and type the ID as an attribute of the desired tag.

For Example:

If the ID you create was "#myId" and you want to apply it to a paragraph tag, edit the paragraph tag as follows:


<p id=myId>text in a paragraph</p> 


REFERENCES

For more information on using classes in CSS, please see the following location on the World Wide Web Consortium web site:

http://www.w3.org/TR/REC-CSS1#class-as-selector
For more information on using IDs in CSS, please see the following location on the World Wide Web Consortium web site:
http://www.w3.org/TR/REC-CSS1#id-as-selector

Additional query words: front page fpfaq


Keywords          : kbdta 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: July 1, 1999