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
Copy file name to clipboardExpand all lines: index.html
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -898,7 +898,7 @@ <h3>
898
898
padding: 0;
899
899
}</code></pre>
900
900
<p>
901
-
There a couple of points worth noting in the <abbr>CSS</abbr>. The table has been centered by giving the left and right margins a value of <code>auto</code>. For block-level elements a <code>width</code> declaration would also be required when applying this technique, however tables have an inherent width so one does not need to be specified explicitly.
901
+
There a couple of points worth noting in the <abbr>CSS</abbr>. The table has been centred by giving the left and right margins a value of <code>auto</code>. For block-level elements a <code>width</code> declaration would also be required when applying this technique, however tables have an inherent width so one does not need to be specified explicitly.
902
902
</p>
903
903
<p>
904
904
The bullet points separating chapter titles and page numbers have been generated by the <abbr>CSS</abbr>. Specifically a bullet point (Unicode character 2022) has been inserted before the <code>td</code> element. Generated content is not supported by Internet Explorer 6 or 7, so a more cross-browser alternative would be to write a bullet point entity <code>&#8226;</code> into the markup itself.
@@ -1270,7 +1270,7 @@ <h2>
1270
1270
<blockquote>
1271
1271
<spanclass="quote">“</span>
1272
1272
<p>
1273
-
Verse is usually set flush left and ragged right, and verse quotations within prose should not be deprived of their chosen form. But to distinguish verse quotations from surrounding prose, they should be indented or centered on the longest line.”
1273
+
Verse is usually set flush left and ragged right, and verse quotations within prose should not be deprived of their chosen form. But to distinguish verse quotations from surrounding prose, they should be indented or centred on the longest line.”
1274
1274
</p>
1275
1275
</blockquote>
1276
1276
<p>
@@ -1289,7 +1289,7 @@ <h2>
1289
1289
font-family: inherit;
1290
1290
}</code></pre>
1291
1291
<p>
1292
-
A logical way to center the verse on the longest line would be to simply specify <code>width:auto</code> and <code>margin:0 auto</code>. Unfortunately, due to browsers’ rendering of preformatted elements, the element will still be considered to comprise full-width lines, so no centering will occur. However we can work around this by specifying the <code>pre</code> element to display as a <code>table</code> as follows:
1292
+
A logical way to center the verse on the longest line would be to simply specify <code>width:auto</code> and <code>margin:0 auto</code>. Unfortunately, due to browsers’ rendering of preformatted elements, the element will still be considered to comprise full-width lines, so no centring will occur. However we can work around this by specifying the <code>pre</code> element to display as a <code>table</code> as follows:
1293
1293
</p>
1294
1294
<predata-lang="CSS"><code>.verse pre {
1295
1295
font-family: inherit;
@@ -1307,7 +1307,7 @@ <h2>
1307
1307
Thinks in a marrow bone.</span></pre>
1308
1308
</blockquote></code></pre>
1309
1309
<p>
1310
-
This <code>span</code> can then be centered in Internet Explorer applying <code>text-align:center</code> to the <code>pre</code> and resetting the text alignment on the <code>span</code> element.
1310
+
This <code>span</code> can then be centred in Internet Explorer applying <code>text-align:center</code> to the <code>pre</code> and resetting the text alignment on the <code>span</code> element.
Here’s the final rendered example of prose, set flush left & ragged right, and centered on the longest line:
1338
+
Here’s the final rendered example of prose, set flush left & ragged right, and centred on the longest line:
1339
1339
</p>
1340
1340
<figureid="example-12">
1341
1341
<p>
@@ -1379,7 +1379,7 @@ <h3>
1379
1379
The Future
1380
1380
</h3>
1381
1381
<p>
1382
-
Until recently, the <aclass="ext-link" href="https://www.w3.org/TR/css3-text/#hyphenate" target="_blank"><abrr>CSS</abbr> 3 Text module</a> contained the <code>hyphenate</code> property which could be set to <code>auto</code> or <code>none</code>. This property introduced the concept of automatic hyphenation to browsers, and would require that the web browser has a hyphenation dictionary for the language of the text being hyphenated. For example:
1382
+
Until recently, the <aclass="ext-link" href="https://www.w3.org/TR/css3-text/#hyphenate" target="_blank"><abbr>CSS</abbr> 3 Text module</a> contained the <code>hyphenate</code> property which could be set to <code>auto</code> or <code>none</code>. This property introduced the concept of automatic hyphenation to browsers, and would require that the web browser has a hyphenation dictionary for the language of the text being hyphenated. For example:
1383
1383
</p>
1384
1384
<predata-lang="CSS"><code>p {
1385
1385
hyphenate: auto;
@@ -1400,7 +1400,7 @@ <h2>
1400
1400
</h2>
1401
1401
</header>
1402
1402
<p>
1403
-
This guideline can be achieved easily when hyphenating manually. See <ahref="#At_hyphenated_line-ends,_leave_at_least_two_characters_behind_and_take_at_least_three_forward" target="_blank">§2.4.1</a> for more information on manual hypenation.
1403
+
This guideline can be achieved easily when hyphenating manually. See <ahref="#At_hyphenated_line-ends,_leave_at_least_two_characters_behind_and_take_at_least_three_forward" target="_blank">§2.4.1</a> for more information on manual hyphenation.
1404
1404
</p>
1405
1405
<h3>
1406
1406
The Future
@@ -1474,7 +1474,7 @@ <h2>
1474
1474
</p>
1475
1475
<predata-lang="HTML"><code>1&nbsp;inch is equivalent to 2.54&nbsp;cm.</code></pre>
1476
1476
<p>
1477
-
It should not really be expected of authors to type <code>&nbsp;</code>everytime a non-breaking space is required. This is a job that, to some degree, can be performed automatically by a content management system. To demonstrate this by way of simple <abbr>PHP</abbr> example, a regular expression function could automatically insert non-breaking spaces as follows:
1477
+
It should not really be expected of authors to type <code>&nbsp;</code>every time a non-breaking space is required. This is a job that, to some degree, can be performed automatically by a content management system. To demonstrate this by way of simple <abbr>PHP</abbr> example, a regular expression function could automatically insert non-breaking spaces as follows:
Comprehensive control for page breaks was introduced in <abbr>CSS</abbr> 2, however browser support is currently limited to Opera 9. The only paging properties supported by Internet Explorer 7, Safari 3 and Firefox 2 are <code>page-break-before</code> and <code>page-break-after</code> (this is also true of <abbr>IE8</abbr> beta and Firefox 3 beta at time of writing).
1501
1501
</p>
1502
1502
<p>
1503
-
The <code>page-break-before</code> and <code>page-break-after</code> properties enable you to say that a page break should occur before or after the specified element. The following example starts a new page everytime an <code>h1</code> heading is encountered and after every <code>.section</code> block.
1503
+
The <code>page-break-before</code> and <code>page-break-after</code> properties enable you to say that a page break should occur before or after the specified element. The following example starts a new page every time an <code>h1</code> heading is encountered and after every <code>.section</code> block.
0 commit comments