I have a text make up of three <span>
and I do not understand the rules applied when folding them:
<span style="font-family: sans-serif;
font-weight: normal;
color: black;
background-color: white;
border-color: darkblue;
border-style: solid;
border-width: 5px;
padding: 3px 3px 3px 7px;
text-align: center;
">
ℹ
</span>
<span style="
font-family: sans-serif;
font-weight: bold;
color: white;
background-color: darkblue;
border-color: darkblue;
border-style: solid;
border-width: 5px;
padding: 3px 3px 3px 3px;
">
This is some text
</span>
<span style="font-family: sans-serif;
font-weight: normal;
color: black;
background-color: white;
border-color: darkblue;
border-style: solid;
border-width: 5px;
padding: 3px 5px 3px 5px;
">
This is more text, a longer one which will eventually fold. Some more words.
</span>
If the width of the browser is reduced, the message folds and overlaps the upper parts.
How is the folding calculated? (what is taken into account to decide that the text will be placed at a specific distance?)
And therefore: what are the parameter(s) which influence the shift to the bottom of the next line of text? (in other words: what to change so that the second line starts lower)