Log in

View Full Version : problem in DIV Width....in CSS



gurmeet
08-12-2009, 04:15 AM
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 ....

gurmeet
08-19-2009, 06:32 AM
is there any web forum where CSS EXPERTS can give solutions quickly...?

Beverleyh
08-20-2009, 02:31 PM
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">