How to stop sentence from breaking before certain words?
I have a set of category titles that all have the Unicode character fora down arrow at the end of the title. What I would like to do, somehow, is that as the divs that the titles are in shrink the titles are broken up from a single line to multiple lines EXCEPT for the Unicode character. I want that to always be on the same line as the last word of the title. Here is the HTML and relevant CSS:
2 Replies
instead of a regular space, you can use a no-break-space:
I kind of feel stupid on this one. I did try the no-break-space and it did not work but after you suggested it I relaized the category names are programicly generated and that the way I coded it there was a normal space between the work and the no-break-spaceI tried. I jsut updated my code and it is working as it should.