Reputation: 4360
<div style="line-height:25px;">
First line of the content<br />
Second line of the content<br />
Third line of the content<br />
</div>
On usage of break tag in a <div>
, the line-height property is not working with any of the attributes:
line-height:20px;
line-height:100%;
line-height:1.5;
Now the three lines are displayed with default line height and not with the specified line-height
25px. But if the <div>
contains no break tag between the lines, the line height works. How to override this?
Upvotes: 4
Views: 3608