There is a string.

Hello world ©

Copyright goes in the tag i the string itself in the span is all enclosed in a div

div

span - Hello world;

i - ©

As with the compression of the screen, make so that the copyright is transferred to the new line along with the last word of the line. And not separately copyright and then the word world.

  • Can I see your code? - Aliaksandr Pitkevich

1 answer 1

Just wrap the second word and the wrapper icon, for example: link to jsFF

<span class="parent"> Hello <span> world <i>©</i> </span> </span> .parent { width:100px; display: block } .parent span { display:inline-block; } 
  • I can't wrap the last word in span - Oleg Ovcharenko
  • jsfiddle.net/gmhshxxn Either this way, but then the <i> tag is not needed - MoJlo4HuK
  • I can't do span: after and ask him contant because i have a separate tag on which the tooltip pops up with an explanation - Oleg Ovcharenko
  • So you can not wrap the last word in the span? You can still do on js, but in my opinion it is too. - MoJlo4HuK