css why does text go on a new line code example
Example 1: line break inside content css
p:after {
display: block;
white-space: pre-line;
content: "Me too! \A Me three!";
}
Example 2: html add line break in string on screen size
<div class="container">
<div class="tab-content">
<div class="col-lg-5">
<div>
<h4>Commune : <span>CENON-SUR-VIENNE</span></h4>
</div>
</div>
</div>
</div>
<style>
h4 span{
display: inline-block;
}
</style>