I've been trying to remove the line break that is caused by a break tag
I have come up with a solution that works in chrome, but not in firefox / IE11. Kind of curious if there is a CSS only solution that I could use in this situation that would work across most modern browsers:
HTML
<p>This line breaks in firefox,<br> but not chrome</p>
CSS
br {
display: inline-block;
content: " ";
width: 7px;
}
Edit:
- The break tag also needs to act like a space between the two words.
`s with spaces? Either on the server or with JavaScript? `$("br").replaceWith(" ")` http://jsfiddle.net/T62LE/6/ – Ruan Mendes Aug 01 '14 at 18:45