html - Place icon after a line with text-overflow ellipsis -


i have problem text-overflow: ellipsis. want place icon after 3 dots, icon appears on next line (because of display: block property). there way display line this?

enter image description here

my example fiddle , css:

.title {   text-overflow: ellipsis;   overflow: hidden;   white-space: nowrap;   display: block;   width: 200px; } 

you use inline-block instead , set icon position: absolute in order have place last span ends.

.title {   text-overflow: ellipsis;   overflow: hidden;   white-space: nowrap;   display: inline-block;   width: 200px; }  .fa {   position: absolute; } 

see here: https://jsfiddle.net/27rov6qn/1/


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -