Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Prevent word breaks Reply To: Prevent word breaks

#156340
__
Participant

Why would I wrap each compromised word when I can just add a br tag?

I’m not sure I understand. You would wrap the individual words so the nowrap property applies only to them, rather than to the entire text (which, I gather, is not what you want).

How would adding a <br> tag help prevent line breaks?

make sure any justified text is in a container with a minimum width

That’s what I was looking for! I knew there was another property needed to assist the nowrap.

That suggestion was meant to for the “ugly-justified-text-in-narrow-columns” issue. It doesn’t affect text wrapping at all.