Adobe GoLive 9

To create an HTML element style

  1. In the CSS Editor, do one of the following:
    • Click the Create A Style That Applies To Markup Elements button .

    • Choose New Element Style from the Create New CSS Statements button menu.

    • Choose Advanced > CSS > New > Element Style.

    • Choose a tag from the Create A Style That Applies To Markup Elements button menu.

      To add an HTML tag to both menus, choose Edit Style Examples from the Create A Style That Applies To Markup Elements button menu. (See To edit the styles listed in the Create New CSS Statements menu in the CSS Editor.)
    • Select an existing HTML element style in the CSS Editor, and choose Edit > Duplicate.

  2. Select the new style in the CSS Editor, and select the Selector And Properties set . If you didn’t choose a tag in step one, type an HTML element (tag) name in the Selector text box. If you want to apply the same properties to multiple elements, separate each element name with a comma in the Selector text box.

    Element styles use HTML start tags without the less than (<) and greater than (>) characters—for example, h2 for second-level headers, p for paragraphs, td for table cells, and the letter a for hypertext links. For more information on naming HTML element styles to format tables and table content, see Formatting tables with cascading stylesheets.

    You can set the shared properties of all text in a page by creating HTML element styles named after the tags <body>, <div>, and <td> (for table cells). For example, you could add one new HTML element style, “body,” to the CSS Editor. Then, select basic.CSS from the CSS Inspector and enter an element named “td, body, div” (without the quotation marks). Assign any shared properties you want to “td, body, div” and save the changes. In this example, the properties that you set for “td, body, div” in the basic.CSS are then assigned to “body.”
  3. In the CSS Editor, add style properties to the selected style.

    Any properties you add are automatically applied to the HTML element that the style is named after wherever the tag appears in the page.