Horizontal Rule Markup Code
Horizonal rule (<hr>) elements separate each section of the static navigation.
This is the markup for the horizontal rule elements:
-
/* Horizonal Rule markup code */ -
-
<hr>
-
-
/* end Horizonal Rule markup code */
Horizontal Rule C.S.S. Code
The hr element is defined as so:
- #nav hr
-
margin: 1.5em 0em; - shorthand for the margin property:
- margin-top and margin-bottom: 1.5em; - sets the top and bottom margins
- margin-left and margin-right: 0em; - sets the left and right margins
This is the presentation code used to style the horizontal rules.
-
/* Horizontal Rule presentation code */ -
-
#nav hr { -
margin: 1.5em 0em; }
-
-
/* end Horizontal Rule presentation code */