EXAMPLES OF STYLES CODING

These code snippets are normally placed in the body section. You will probably want to collect some snippets to copy and paste.

  • This style eliminates the automatic underlining for the three types of links.
     
    <style type="text/css">
    A:link {text-decoration: none} A:visited {text-decoration: none}
    A:active {text-decoration: none}
    </style>
     
  • This style controls the colors of the links. (To use this, you will need to understand the color numbers.)
    <style type="text/css">

    A:link {color: #000066;}
    A:visited {color: #000066;}
    A:hover {color: #800000;}
    </style>

  • Are you tired of changing your font from Times New Roman to Comic Sans? Want everything to be automatic? There is no default font in FrontPage, but you can create a style that works just like a default font in Word.

    In Design view, rightclick a blank part of your page. Page Properties | Advanced. (This is a very important dialog box. Before you click Body style, note the margin options and the Enable hyperlink rollover effects box.)

Switch to Code view and note the insertion of this code:

<body style="font-family: Comic Sans MS; font-size: 12pt; color: #000080" id="Exp1">

This type of style code can be typed into the code, pasted into the code, or you can let FrontPage help you.


Page Changed 02/21/2006

Website Construction

StarkeTech