Yes, I have OCD as well and am verily frustrated by such imperfections.
You may style your <br>
with CSS:
br {
line-height: 2rem;
height: 2rem;
}
or by in-line styling, as provided by @Raj Kumar in a previous answer:
<br style="line-height: 2rem; height: 2rem;" />
Try a snippet here:
<br style="line-height: 10px; height: 10px;">
<!-- I used 10px to emphasise the height. You can use !important, too, if your code is not obedient. See? It works.-->
If this does not work, what I'd advise you to do would be to completely omit the <br>
tags and add either margin
, padding
, or invisible borders (border: 2px groove transparent;
) to the elements you're seperating. Another not-so-neat way is to add transparent a div
(div.class {background: transparent; width: 100%; height: 2px;}
).
You might want to try to add / in your <br />
tag (just in case) (although most modern browsers already support <br>
). Make sure you don't have any additional spaces in your code, too (just for neatness). Also try to import normalize.css
or vanilla.css
and check if it fixes the problem.
Thanks for letting me know about Vivaldi. Looks like a nice browser!
` – Alberto I.N.J. Jun 30 '15 at 06:41
` to increase the gap between lines of text;** use the CSS margin property or the `
` element.* Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br
– gmo Jun 30 '15 at 06:51