In-Line Tutorial (NOF 8, 9, 10)
- In Page Design View, Tools > Options > Current site > General Tab: Select Dynamic Page Layout -all browsers, Cascading Style Sheets (CSS) and change Curly Quotes to Straight Quotes.
- Highlight and copy this code for a newlink class:
<style type="text/css">
.newlink:link{/*unvisited*/ color:#990000; text-decoration:none}
.newlink:visited{/*visited*/ color:#9999FF; text-decoration:none}
.newlink:hover{/*mouseover*/ color:#990000; background:none; text-decoration:underline}
.newlink:active{/*selected*/ color:#FFCC00; text-decoration:none}
.newlink:focus{/*optional, same as hover, but with tab key*/ color:#990000; background:none; text-decoration:underline}
</style>
- Click somewhere inside your MasterBorder or Page Layout area. On the properties box (F3), hit the HTML... button.
- This will invoke an HTML insertion window.
- Select the Between Head Tags tab and paste your newlink code into the HTML insertion pane:
- Edit hex #colors and other style definitions as required.. Use this handy Hex #color chart to help with color selection. When you are done, click OK.
Applying newlink class to your text (NOF 8, 9, 10)
- Type some text on your page, highlight text and click the LINK button.
- On Link Properties Box, hit the HTML button and click on the Inside Link tab.
- Paste this bit of code into the link HTML insertion box and hit OK.
class="newlink"
- Repeat steps 7 - 9 for other newlinks.
- Save site (Ctrl+S). NOTE: This style is not visible in Design View. You must perform a Local or Remote Publish to see your newlink style.
Pasting Code into External Stylesheet (NOF 10)
- Copy the newlink code WITHOUT these beginning and closing tags:
<style type="text/css"> </style>
- On the Tools Menu, go to Style View
- Click the CSS Code tab and scroll down to the bottom of your stylesheet. Click inside the stylesheet and paste newlink code. Save site ( Ctrl+S).
NOTE: This link order MUST be followed to work.
- Link,
- Visited,
- Hover,
- Active
- (optional) Focus
The memory device for keeping correct link order is LiVHA. For more on pseudo-classes and link styles, visit the w3schools.com
We hope you enjoyed this tutorial on custom CSS link styles.
|