You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 75fd3e5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: techniques/css/C17.html
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ <h2>Examples</h2>
25
25
<sectionclass="example">
26
26
<h3>A Contact Form</h3>
27
27
<p>A Contact Us form has some introductory information and then form controls for users to enter their first name, last name, telephone number and email address. All of the text and form controls have been implemented in a scalable way.</p>
Copy file name to clipboardExpand all lines: techniques/css/C22.html
+82-34Lines changed: 82 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -47,94 +47,125 @@ <h2>Description</h2>
47
47
<h2>Examples</h2>
48
48
<sectionclass="example">
49
49
<h3>Using CSS font-family to control the font family for text</h3>
50
+
<sectionid="the-html">
50
51
<h4>The HTML component</h4>
51
52
<prexml:space="preserve"><codeclass="language-html"><p>The JavaScript method to convert a string to uppercase is <code>toUpperCase()</code>.</p></code></pre>
<h3>Using CSS font-weight to control the font weight of the text</h3>
98
117
<divclass="note">
99
118
<p>The style used in this example is not used to convey information, structure or relationships.</p>
100
119
</div>
101
-
<h4>The HTML component</h4>
120
+
<sectionid="the-html6">
121
+
<h4>The HTML component</h4>
102
122
<prexml:space="preserve"><codeclass="language-html"><p>This deal is available <span class="highlight">now!</span></p></code></pre>
<h3>Using CSS <codeclass="language-css">line-height</code> to control spacing between lines of text</h3>
120
145
<p>The CSS <codeclass="language-css">line-height</code> property is used to display the line height for the paragraph at twice the height of the font.</p>
121
-
<h4>The HTML component</h4>
146
+
<sectionid="the-html8">
147
+
<h4>The HTML component</h4>
122
148
123
149
<prexml:space="preserve"><codeclass="language-html"><p>Concern for man and his fate must always form the chief interest of all technical
124
150
endeavors. Never forget this in the midst of your diagrams and equations.</p></code></pre>
<p>The CSS <codeclass="language-css">line-height</code> property is used to display the line height for the text at less than the height of the font. The second line of text is positioned after the first line of text and visually appears as though the text is part of the first line but dropped a little.</p>
<h3>Using CSS <codeclass="language-css">background-image</code> to layer text and images</h3>
179
217
180
218
<p>The CSS <codeclass="language-css">font-style</code> property is used to display the textual component of a banner and <codeclass="language-css">background-image</code> property is used to display a picture behind the text.</p>
<h3>Using CSS <codeclass="language-css">::first-letter</code> to control the presentation of the first letter of text</h3>
226
270
227
271
<p>The CSS <codeclass="language-css">::first-letter</code> pseudo-element is used to display the first letter in a larger font size, red and vertically aligned in the middle.</p>
272
+
273
+
<sectionid="the-html14">
228
274
<h4>The HTML component</h4>
229
275
230
276
<prexml:space="preserve"><codeclass="language-html"><p class="startletter">Once upon a time...</p></code></pre>
0 commit comments