label width

Discussion in 'ASP .Net Web Controls' started by jack-e, Jun 9, 2005.

  1. jack-e

    jack-e Guest

    Hi,

    An easy on I'm guessing!

    How do I restrict the length of a label? I have tried setting the width
    to say 200px but if the user inputs a continuous line of characters
    it's doesn't wrap.

    Thanks in advance.

    Jack
     
    jack-e, Jun 9, 2005
    #1
    1. Advertising

  2. jack-e

    Jason L Lind Guest

    Label's do not wrap. You should look into putting the label inside a table
    and the table properities will force it to wrap.

    Jason Lind

    "jack-e" wrote:

    > Hi,
    >
    > An easy on I'm guessing!
    >
    > How do I restrict the length of a label? I have tried setting the width
    > to say 200px but if the user inputs a continuous line of characters
    > it's doesn't wrap.
    >
    > Thanks in advance.
    >
    > Jack
    >
    >
     
    Jason L Lind, Jun 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shapper
    Replies:
    2
    Views:
    760
    Scott Mitchell [MVP]
    May 7, 2005
  2. Josef K.

    <label><div></div></label> allowed?

    Josef K., May 20, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    13,648
    Josef K.
    May 22, 2005
  3. AndrewF
    Replies:
    1
    Views:
    817
    Bruce Barker
    Oct 10, 2005
  4. Praveen
    Replies:
    1
    Views:
    1,029
    Rob Williscroft
    Nov 5, 2006
  5. Knut Krueger
    Replies:
    8
    Views:
    306
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page