View Full Version : Comments Text Formatting
06-27-2005, 07:21 AM
Is there a way to force line wrapping on the comments text?
06-27-2005, 08:05 AM
what do you mean exactly:
when the comments-text is printed or the text in the <textarea> of the form?
if you mean that, in which browser is the text unformatted, no wordwrap?
06-27-2005, 08:17 AM
When the comments text is printed..
If the text from form has no formatting (one long line, no enter keystrokes) - the comment will appear the same when printed - I am trying to force this text to wrap.
In firefox, the text runs off the page. In IE, the page width increases. I have been trying to set wordwrap using CSS, but this has no effect..
I'm bit of a newbie, so... ;)
06-27-2005, 08:52 AM
textformatting depends on the HTML:
if you set the text into <p> </p> you will have word wrap
if you style this <p> with CSS you can even define the width of this Paragraph, otherwise, without any CSS, it will wrap according to the available space
without any CSS or HTML, what to do with text? If you pour milk into no pot, it will float everywhere :cry:
so first try: set the comment-TAG into <p> </p> at your comment-template.html
if you have no success, post the code of your comment-template.html here!
otherwise you can read the great tutorial about creating templates which Doffer wrote especially for newbies!
06-27-2005, 10:46 AM
Arg. I just realised why I was having this problem. Instead of typing a mock comment, I was holding down a key until it ran off screen. Meaning: no whitespace in the comment....... I didn't realise spaces were needed for the wrap to kick in...... :oops:
Oh well, problem fixed.
Thanks for the help though :)
06-27-2005, 11:17 AM
Sorry, I forgot the most basic rule: if you have no spaces in the text, you cannot wrap the line :oops:
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.