Defining pseudo-HTML link styles

You can define pseudo-HTML styles for the links in your Web site. For example, you can set the colors of visited and unvisited links.

Before you begin

Create a style sheet.

About this task

Here is a list of commonly used pseudo-HTML styles.
Pseudo-HTML selector Description
a:link Any unvisited link.
a:visited Any visited link
a:hover Any specified element while the cursor hovers over it
a:active Any active link

Procedure

  1. In the HTML or JSP file's Design or Split pane, focus on the element to which you want to apply the class style.
  2. Select Style > New Style Rule from the element's pop-up menu.
  3. In the New Style dialog box, select the HTML tag radio button and then from the HTML tag name drop down list, select the pseudo HTML tag for which you want to define styles.
  4. Click OK.
  5. Add specific style definitions using the New Style dialog box.
  6. Click OK to save changes and apply the style rule to the element in focus. The style that you have specified is displayed in the Styles view.
  7. To see the style rule being used in the style sheet, click the style in the Styles view. You can see the definition of the style in the Properties view.

Feedback