Try adding:
display: inline-block;
Note: this may slightly change the behavior.
in html:
<span>JAN-MAR <br /> Q1 Summary</span>
You can also use js for a more dynamic approach:
<span class="q-span">JAN-MAR Q1 Summary</span>
and you can use jQuery for this:
$(document).ready(function(){
$(".q_header").each(function(){
var
content = $(this).text(),
first_w = content.match(/([\w\-]+)/);
var new_cnt = content.replace(first_w[0], first_w[0] + "</br>");
$(this).css("display", "inline-block").html(new_cnt);
});
});
source
share