I have the following line of css and html here:
CSS:
.top, .title {
font-weight: bold;
}
.bottom, .Content {
}
HTML:
<span class='title'>Title</span>
<br/>
<span class='Content'>Content</span>
<br/><br/>
I would like to replace the <br/> tag with an equivalent in CSS, but I am struggling with it. I would appreciate any help.
I’ve tried margin-bottom, margin-top, line-height, none of it worked.
<span>is an inline element, so can’t havemarginapplied, but it can takepadding– give it something like.title { padding: 10px 0; }and it’ll simulate a paragraph, or just.title { display: block; }to force the next thing to go beneath it.