Actually, the icon acts in exactly the same way. To check, try to set the style
display: inline-block; width: 50px;
When you create the position of the tag: absolute, this leads to the fact that the tag no longer has an automatic width of 100% of its parent element, but rather has a minimum width that it can accept according to the heuristic in the browser (browser dependent) . The built-in block acts like "inline", like an image, and thus ends on the next line with the first probability (which is located immediately after the word "tag").
So, the short answer is: the icon acts the same, but the block containing it is not.
To force the icon on the same line as the first line, you can add white-space: pre; . See: http://jsbin.com/itole4/6 (also see comment below)
source share