locked
Text wrapping RRS feed

  • Question

  • User-1964876090 posted

    Problem is, that i'm trying to display links in a labels on my web form. But if someone creates a long link, it extends the web page and breaks the layout. Is there any possibility to wrap this link text into multiple lines with the possibility to click and have a redirection?

     Thanks.

    Friday, November 9, 2007 5:40 AM

Answers

  • User-837620913 posted

    In IE you can use

    style="word-wrap:break-word"

    and it will wrap.  Firefox doesn't break on non-whitespace characters, so that may not help too much.

    Have you tried setting a width on the Label? 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 9, 2007 7:58 AM

All replies

  • User-837620913 posted

    In IE you can use

    style="word-wrap:break-word"

    and it will wrap.  Firefox doesn't break on non-whitespace characters, so that may not help too much.

    Have you tried setting a width on the Label? 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 9, 2007 7:58 AM
  • User1170781014 posted

    Try putting the label into a Table and setting the width of the table to a value where you want it to start wrapping.

    Friday, November 9, 2007 9:41 AM