How can I prevent having just one hanging word on a new line in an HTML element?

前端 未结 3 1641
借酒劲吻你
借酒劲吻你 2021-02-05 04:37

I\'m building a simple webpage with some marketing content. One thing I don\'t like is that if a line of text is too long, it will wrap onto the next line, which is fine

3条回答
  •  感情败类
    2021-02-05 04:50

    I would use a last two words. tag.

    This also gives the benefit of not cutting off any HTML flourishes you may be doing, eg:

    Here's a big statement I don't want cutting off.
    

提交回复
热议问题