New Questions Come and go in a hurry. It has been more than two months since the last release of Vertical Grid and Progressive Line Spacing (Part 1). On the other hand, look at the results from last time. Huh? Why do side bets feel a bit strange? Or refer to my article about typography: We know
It seems that for the 12px font size of the marginal note, the 24px line height is obviously too large. However, according to the method of the previous article, vertical rhythm requires that the line spacing of marginal notes and the line spacing of the main text should be consistent. So in order to maintain the vertical rhythm, we can only reduce the line spacing on both sides at the same time - summary: unreliable. So how do we adjust the margin line spacing so that the vertical rhythm we have established is effective? This requires us to introduce progressive line spacing . Progressive line spacing In general, progressive line spacing is a complement to rigid vertical rhythm. Vertical rhythm requires that marginal notes align with each line of the main text. In contrast, progressive line spacing allows marginal notes to align with the main text as well—but not every line—but every few lines. Generally, alignment is done every 4 or 5 lines. Let's review the previous article and know that the example at the beginning of this article has the following "configuration":
We change the line spacing and paragraph spacing of the marginal notes to 18px. Then the situation will be like this: I wonder if you have noticed why the baseline of the first line is not aligned? This is because the flow layout will align the text block to the top according to the line height. As shown below: So here, in order to align the first line baseline, we also need to drop the margin down a certain number of pixels. Unfortunately, how many pixels should be reduced? This is a very complicated question. After several attempts, I still can't find a pattern. I can only draw the following three conclusions:
Previous Page 1 2 3 Next Page Read More |
<<: How to use html table (to show the visual effect of web page)
>>: Use Rem layout to achieve adaptive
Summary: In order to make your web page look more...
Virtualization 1. Environment Centos7.3 Disable s...
Table of contents Application Scenario Simply put...
Table of contents Step 1: Update Packages on Cent...
Table of contents Multiple uses of MySQL Load Dat...
Table of contents 1. Component Registration 2. Us...
1. The difference between Http and Https HTTP: It...
I am writing a small program recently. Because th...
A large part of data management is searching, and...
Let's take a look at the situation where Secu...
This article discusses the difficulties and ideas...
Text shadow text-shadow property effects: 1. Lowe...
Form validation is one of the most commonly used ...
Table of contents 1. Block scope 1.1. let replace...
introduction It is okay to add or not add a semic...