Log in

View Full Version : need help in DIV width.....



gurmeet
07-29-2009, 08:05 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...?

fg123
07-29-2009, 09:54 PM
are you using php to display the info? if so, cant you just use:

<center><?php echo $_POST['feedback_textarea_name'] ;?></center>