Home > Article > Web Front-end > Analysis of the differences between the spacing of multiple divs with inline-block and programming writing methods
The spacing between multiple p's with border and inline-block will be different according to the programming method. Let's see an example below to give you a feel.
When learning inline-block, I found that the spacing between multiple p's with border and inline-block will be different according to the writing method of programming. When written as:
The code is as follows:
<p>.......</p> <p>.......</p>
At this time, there is no spacing between p.
If written as:
The code is as follows:
<p>.......</p><p> .......</p>
At this time, there is a gap between p.
For more related articles on the differences between the spacing of multiple inline-block divs and programming writing methods, please pay attention to the PHP Chinese website!