<div class="linebreak">
Some code Here.
</div>
I want that as soon as the div closes/finishes there should be a two line break. the novice way of doing is that I should put →`
<br>
<br>
Is there a better way or a pro way of accomplishing this?
Use margins or padding to create space, rather than <br>
tags.
1 Like
Oh yes the margin-bottom should work.
ainocss
4
You can do it with some css. Example:
.linebreak {margin-bottom:50px;}
OR
.linebreak {padding-bottom:50px;}
That’s it!
PS: If you put the “linebreak” class into an inline element (e.g a span) you need to add “display:block” into your code.
Example:
.linebreak {padding-bottom:50px; display:block;}
If you don’t know what an inline element is, check this: https://www.thoughtco.com/block-level-vs-inline-elements-3468615
2 Likes
system
Closed
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.