I have this HTML:
<div style="border:1.00px solid #000000;display:inline;">
<span style="font-family:Arial;font-size:20pt;">this is some text</span>
</div>
I want to apply a border to cover the text only. The border do not cover the full height of the span. What is the reason?
Edit:
<div>
<div style="border:1.00px solid #000000;display:inline-block;">
<span style="font-family:Arial;font-size:20pt;">this is some text this is some text this is some this is some text</span>
</div>
<span style="font-family:Arial;font-size:20pt;">this is some text</span>
</div>
I changed "inline" to "inline-block". In that case a line spanning more than one line and having border not really only covers the text. What I am trying is, if only some part of the whole text has border. The border cover's the whole line. Is this normal or I can something for this ?