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.
Prerequisite: Create a style sheet.
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

To define a pseudo-HTML style:

  1. In the HTML or JSP file's Design page, 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.
Related concepts
Cascading Style Sheet (CSS) Designer
Related tasks
Defining styles
Defining and applying class and ID styles
Specifying styles for predefined areas
Removing a specified style
Defining styles for an element

Feedback