The (X)H.T.M.L. Structure Layer Markup Code
This markup structures a Section Heading:
-
/* Section Heading markup code */ -
-
<h4>Section Heading (topics, for example)</h4>
-
-
/* end Section Heading markup code */
The Cascading Style Sheet (C.S.S.) Presentation Layer Code
The Section Heading presentation code is defined as follows:
- #nav h4
- font-size: 1.5em; - sets the font-size for each Section Heading
- font-variant: small-caps; - sets all text characters to small-caps
- text-align: center; - center aligns the text
- margin: 0em; margin property shorthand - sets all margins to 0em in the following order: top, right, bottom, left
- padding-bottom: 0.3em; - sets the padding-bottom to 0.3em
- color: #fff; - sets the text characters to white
- background: inherit; - sets the background of the topic to inherit the existing background color
The following code block sets forth the Section Heading styles:
-
/* Section Heading presentation code */ -
-
#nav h4 { -
font-size: 1.5em;
-
font-variant: small-caps;
-
text-align: center;
-
margin: 0em;
-
padding-bottom: 0.3em;
-
color: #fff;
-
background: inherit; }
-
-
/* end Section Heading presentation code */