mirror of
https://github.com/clagnut/webtypography.git
synced 2025-09-03 10:03:00 +02:00
Merge pull request #29 from bakert/scraps
Remove no-longer-true assertion about line-height
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
<p>However <strong>that example is bad</strong> as <code>line-height</code> should never be applied using absolute units such as points or pixels. In the prior example, when text is resized in a browser, the font-size increases <span class='bracket'>(</span>to 18 pt for example<span class='bracket'>)</span> but the line-height may remain at 15 pt. So instead of the lines being spaced apart, they would actually overlap.</p>
|
||||
|
||||
<p>A better approach is to make use of a unique characteristic of the <code>line-height</code> property: it is the only <abbr title="Cascading Style Sheets">CSS</abbr> property for which non-zero numeric values are allowed without units. The preceding example could also be coded as:</p>
|
||||
<p>A better approach is to use a unitless value. The preceding example could also be coded as:</p>
|
||||
|
||||
<pre><code>p {
|
||||
font-size: 12pt;
|
||||
|
Reference in New Issue
Block a user