How to disable <br> tags inside <div> by css?
You could alter your CSS to render them less obtrusively, e.g.
div p,
div br {
display: inline;
}
http://jsfiddle.net/zG9Ax/
or - as my commenter points out:
div br {
display: none;
}
but then to achieve the example of what you want, you'll need to trim the p
down, so:
div br {
display: none;
}
div p {
padding: 0;
margin: 0;
}
http://jsfiddle.net/zG9Ax/1
or hide any br that follows the p tag, which are obviously not wanted
p + br {
display: none;
}