Reputation: 44862
I'm wondering is there a way of doing the following using CSS alone. When </div>
is called on a specific div that a <br />
would be added.
Upvotes: 0
Views: 767
Reputation: 20008
div:after {
content: '<br />';
}
Doesn't do what you want it to do, but it does literally.
Upvotes: -1
Reputation: 724532
If you're looking to create a gap below your <div>
, in most cases giving it a bottom margin will do the trick:
#some-div {
margin-bottom: 1em; /* Adjust depending on your text's line-height */
}
Upvotes: 3