The (X.)H.T.M.L. Markup Code
The TOPICS Section contains the global navigation for the web document collection.
- Each Topic is hyperlinked to its individual web page and is activated by:
- Mouse:
- Hover over the Topic hperlink.
- Click it to open the web page.
- Keyboard:
- Press the Tab key to navigate to and gain focus on the desired Topic hyperlink.
- Press the Enter key to open the web page.
- Mouse:
This is the markup code that builds the TOPICS Section:
-
/* TOPICS Section markup code */ -
-
<h4>topics</h4>
-
<ul class="linkstate">
-
<li><a href="home.htm">Home</a>
-
<ul>
-
<li><a href="GettingStarted.htm">Getting Started</a></li>
-
<li><a href="Nav.htm">The NAV Container</a>
-
<ul>
-
<li><a href="Skip.htm">Skip to Content Section</a></li>
-
<li><a href="hr.htm">Horizontal Rule Section</a></li>
-
<li><a href="LinkStates.htm">Link States Section</a></li>
-
<li class="topics"><a href="Topics.htm" title="This page is currently open.">Topics Section</a></li>
-
<li><a href="Guide.htm">A Help Authoring Guide Section</a></li>
-
<li><a href="SectionHeading.htm">Section Heading Code</a></li>
-
<li><a href="CurrentlyOpen.htm">Currently Open Code</a></li>
-
</ul>
-
</li>
-
<li><a href="Acknowledgements.htm">Acknowledgements</a></li>
-
<li><a href="References.htm">References</a></li>
-
<li><a href="DesignNotes.htm">Design Notes</a></li>
-
</ul>
-
</li>
-
</ul>
-
-
/* end TOPICS Section markup code */
C.S.S. Presentation Code
The presentation for the TOPICS Section is defined in the following manner:
- #nav .linkstate
- font-weight: bold; - sets all link characters to bold.
- #nav .linkstate a:link
- text-decoration: none; - removes underlining from hyperlinks
- color: #a4d3ee; - sets the font color to a light blue
- padding-right: 1.7em; - makes space on the right side of the Topic for the linkstate image
-
background: #000 url(images/link.gif) no-repeat right; shorthand for the background property:
- #000 - sets the background color to black
- url(images/link.gif) - sets the relative path to the images folder containing the link icon image
- no-repeat - sets the image to a single and not a multiple rendering
- right; - positions the image to the right of the hyperlink
- vertical-align: bottom; - positions the image at the bottom of the text line
- #nav .linkstate a:visited
- text-decoration: none; - removes underlining from hyperlinks
- color: orange; - sets the font color to orange
- padding-right: 1.7em; - makes space on the right side of the Topic for the linkstate image
-
background: #000 url(images/visited.gif) no-repeat right; shorthand for the background property:
- #000 - sets the background color to black
- url(images/visited.gif) - sets the relative path to the images folder containing the link icon image
- no-repeat - sets the image to a single and not a multiple rendering
- right; - positions the image to the right of the hyperlink
- vertical-align: bottom; - positions the image at the bottom of the text line
- #nav .linkstate a:hover
- text-decoration: none; - removes underlining from hyperlinks
- color: #fff; - sets the font color to white
- padding-right: 1.7em; - makes space on the right side of the Topic for the linkstate image
-
background: #000 url(images/hover.gif) no-repeat right; shorthand for the background property:
- #000 - sets the background color to black
- url(images/hover.gif) - sets the relative path to the images folder containing the link icon image
- no-repeat - sets the image to a single and not a multiple rendering
- right; - positions the image to the right of the hyperlink
- vertical-align: bottom; - positions the image at the bottom of the text line
- #nav .linkstate a:active
- text-decoration: none; - removes underlining from hyperlinks
- color: #fff; - sets the font color to white
-
background: #000 url(images/hover.gif) no-repeat right; shorthand for the background property:
- #000 - sets the background color to black
- url(images/hover.gif) - sets the relative path to the images folder containing the link icon image
- no-repeat - sets the image to a single and not a multiple rendering
- right; - positions the image to the right of the hyperlink
- vertical-align: bottom; - positions the image at the bottom of the text line
- #nav .linkstate a:focus
- text-decoration: none; - removes underlining from hyperlinks
- color: #fff; - sets the font color to white
-
background: #000 url(images/hover.gif) no-repeat right; shorthand for the background property:
- #000 - sets the background color to black
- url(images/hover.gif) - sets the relative path to the images folder containing the link icon image
- no-repeat - sets the image to a single and not a multiple rendering
- right; - positions the image to the right of the hyperlink
- vertical-align: bottom; - positions the image at the bottom of the text line
This is the C.S.S. code used to format the TOPICS Section:
-
/* TOPICS Section presentation code */ -
-
#nav .linkstate { -
font-weight: bold; }
-
-
#nav .linkstate a:link { -
text-decoration: none;
-
color: #a4d3ee;
-
padding-right: 1.7em;
-
background: #000 url(images/link.gif) no-repeat right;
-
vertical-align: bottom; }
-
-
#nav .linkstate a:visited { -
text-decoration: none;
-
color: orange;
-
padding-right: 1.7em;
-
background: #000 url(images/visited.gif) no-repeat right;
-
vertical-align: bottom; }
-
-
#nav .linkstate a:hover { -
text-decoration: none;
-
color: #fff;
-
padding-right: 1.7em;
-
background: #000 url(images/hover.gif) no-repeat right;
-
vertical-align: bottom; }
-
-
#nav .linkstate a:active { -
text-decoration: none;
-
color: #a4d3ee;
-
background: #000 url(images/hover.gif) no-repeat right;
-
vertical-align: bottom; }
-
-
#nav .linkstate a:focus { -
text-decoration: none;
-
color: #a4d3ee;
-
background: #000 url(images/hover.gif) no-repeat right;
-
vertical-align: bottom; }
-
-
/* end TOPICS Section presentation code */