|
|
|||||||||
|
Coding the SidebarGeneral InformationThe sidebar must be coded in a particular way to produce the standard sidebar link appearance and also function in browsers that do not support style sheets. Some HTML editors might not display the sidebar properly, but browsers will. Specifically, sidebar links are white, have a small left margin, are not underlined. The style sheet produces the look. Normal LinkThe basic rule is: replace the link text and the destinations, but do not modify the styles or any other code in this section of the page. Dropping or changing any other code will change how the sidebar appears. Keep all code for a given link within a single <div></div> combination. The style sheet provides blank vertical space between <div> tags; the spacing is sized between that provided by <br> and <p>. For example, if you were creating a link to a regulations page,
you'd change the items in bold to When creating new sidebar links, ensure that you copy the full line of code for each link. Long Link TextIf a sidebar link is too long to fit on one line, insert a line break and two non-breaking spaces ( ) before the second line, keeping everything within the link text:
You can see this two-line example in the sidebar on the basic sample page. Hierarchical LinksTo create a hierarchy in the sidebar:
Example SidebarCombining the examples above with some others to show how the spacing works results in the following. Note that these links are only samples to show how the code appears in a browser; they don't go anywhere.
|
|
|
||
|
|