I use
<br />
to insert blank lines on my webpage. What is an elegant way to do the equivalent of 20 - 40 of these? After formatting, each br tag is put on a separate line which make reading the file cumbersome.
min-height
, margin
and padding
.
You can define CSS styles for that, like
.space { margin-top: 300px; }
And insert it wherever you want to...
<div class="space"></div>
Hope that helps...
Old question, but evergreen.
If you really want to use multiple < br > tags, you can do so with
<br /> <br />
I find this useful when I want whitespace between paragraphs. Using Div tags to do that is a really bad overkill hack, sorry guys. :-)
That is definitely not the way to have spacing.
Use Css's padding property : http://www.w3schools.com/css/css_padding.asp
use padding between divs or td's instead of <br />
The question was
It would be helpful if someone could explain why using multiple
is not recommended
It's better to use padding or margins on your elements to get the spacing you need. It's more precise (every browser can display the br differently)
margins and padding is more compatible to almost all browsers
You can write like this br*100 without angular brackets in VSCode (Emmet Abbreviation) This will insert the required number of blank lines . here 100 blank spaces.
` is not recommended – Nick Rolando Apr 20 '12 at 16:18