Is there a CSS way to prevent a text element from wrapping from a previous text element?
i.e.
My Table Header <i class="fa fa-search"></i>
shows as
My
Table
Header
MySearchIcon
But I want it to display like this:
My
Table
Header MySearchIcon
The actual code is a combination of Razor and Html
<th>
@Html.DisplayNameFor(m => m.Projects.FirstOrDefault().Name) <i class="fa fa-search smaller fa-fade"></i>
</th>
This is in a header of a table and depending on the header length I do want wrapping but I want a space and the icon to be stuck to the last word in the header and not wrap.
Because of the Razor piece of the code I can't place the non-breaking space up against the output directly,
tag after "table", If so hide the
tag and display it back when necessary. – blecaf Dec 06 '17 at 20:53