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.
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
- In the HTML or JSP file's Design or Split pane, focus on
the element to which you want to apply the class style.
- Select from the element's pop-up menu.
- 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.
- Click OK.
- Add specific style definitions using the New Style dialog
box.
- 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.
- 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.