Plz help urgent-Wrapping text

Discussion in 'CSS' started by shriti, Apr 11, 2007.

  1. #1
    Hi,


    Here is css

    #main #center_panel #Box {
    margin-top: 10px;
    margin-right: 2px;
    margin-left: 5px;
    overflow: hidden;

    }

    This is the css of a form which a user on a website will fill.I have used overflow hidden to wrapp the text but if someones add a non-breaking line(for eg-llllllllllllllllllllllajjjjjjjjjjjjjjjjjjjjjjaaaaaaaaaxsjxhjkhcjkdhcjkh)
    It doesn't wrap and layout looks ugly

    Plz help....
     
    shriti, Apr 11, 2007 IP
  2. jambo182

    jambo182 Active Member

    Messages:
    671
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try

    word-wrap: break-word;
    Code (markup):
     
    jambo182, Apr 11, 2007 IP
  3. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    overflow: hidden should NOT wrap the text.... it should make it non-visible.

    the real solution is in your backend processor that handels the input to parse it after X characters.
    vbulletin has an option for this
     
    briansol, Apr 11, 2007 IP