css - Icons after link: Break with last word -


how can make icons after link stick last word:

div {    background: #aaa;    width: 120px;  }
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"/>  <div>    <span><a href="#">many words here in text breakwiththeicons</a>&#xfeff;<i class="fa fa-heart"></i><i class="fa fa-music"></i>    </span>  </div>

test: http://codepen.io/anon/pen/ejgmbr

html

<div>   <span><a href="#">many words here in text <br>breakwiththeicons</a>&#xfeff;     <i class="fa fa-heart"></i><i class="fa fa-music"></i>   </span> </div> 

css

div {   background: #aaa;   width: 120px;   display: flex; } {   white-space: nowrap; }  

jsfiddle-link


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -