Results 1 to 3 of 3

Thread: problem in DIV Width....in CSS

  1. #1
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default problem in DIV Width....in CSS

    hi, i am using a feed back form , when a user gives feed back, and web pages shows that data, all the spaces and linebreaks go away, and text becomes one paragraph, so i used pre tag,
    its working good, now all text is being shown as user enters with tabs and spaces,
    ----
    but i am facing a problem, when user enters fedback without enterkey, all the text appears in one line only, means it crosses all the boundries of DIV tag's width.... and makes page wide....
    ---
    plz give me ur valueable suggestion how i can controll the PRE tag with DIV tag's width...?
    -----------
    there is a page in zip attatchment , with 4 DIVS, plz visit that page and after that give ur valueable suggestion ....

  2. #2
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    is there any web forum where CSS EXPERTS can give solutions quickly...?
    Last edited by Snookerman; 08-19-2009 at 12:50 PM.

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,933
    Thanks
    16
    Thanked 303 Times in 302 Posts
    Blog Entries
    9

    Default

    I havent checked your download but have you defined the width/height of your div and set overflow (for scrolling) to auto?

    Like this: <div style="width:150px; height:300px; overflow:auto">

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •