htmlinfobubble

Add new line with HTML bubble info


I'm improving my web application by adding bubbles information at different places.

I have the following example :

<h4><b><span class="glyphicon glyphicon-user"></span> Something 
    <a><span title="Some advices ..."
            class="glyphicon glyphicon-info-sign"></span></a>
</b> </h4>

How I can add a newline in my title class in order to get :

Some advices
Some others informations

and not

Some advices. Some others informations

Thank you


Solution

  • To achieve this result you can use div's instead of span's, as they have display: block; styling, unlike span's.