Pixels in HTML Break<br>

liunx

Guest
Looking for some info on determing number of pixels in an HTML break. I know it scales with font size but just trying to get an idea.<br />
<br />
thanks in advance.<!--content--><br> is a line break. Do not use it to get spacing between adjecant elements. Use CSS instead. For example:<br />
<br />
<h1 style="margin-bottom: 25px">Some heading</h1><br />
<p style="margin-top: 10px">This is a paragraph that follows the header. Its located 25 px below the header, not 35px. Note that vertical margins collapse and the spacing is equal to the largest among the two. Negative values are allowed in margins. Negative values are subtracted before spacing is determined.</p><!--content--><br> should be used for just that breaking a line, not spacing.<!--content-->Sounds like an echo of what Nicket just said:<br />
<br />
Originally posted by nkaisare <br />
<br> is a line break. Do not use it to get spacing between adjecant elements.<!--content-->Originally posted by PeOfEo <br />
<br> should be used for just that breaking a line, not spacing. If we reapeat things like this enough people might get the point.... just trying to drive it in lol.<!--content-->
 
Back
Top