Click to See Complete Forum and Search --> : Taming preformatted text
Ben Rogers
03-27-2004, 10:03 PM
Hello all.. I was wondering how to get some line breaks in on <pre>'s. I haven't been able to get them to stay where I want them to. If I put overflow: hidden; half of the text is gona, if i use overflow: visible; then their text stretches into no man's land, if I use overflow: auto; I get nasty scroll bars. Widths haven't helped either. Does anyone know what to do, or know of a good, relevant article? And, for reference, one of my main preformatted page with issues: http://projep.t35.com?03=chat
Paul Jr
03-27-2004, 10:50 PM
Originally posted by omega
Hello all.. I was wondering how to get some line breaks in on <pre>'s.
Hit the "Enter" key.
Ben Rogers
03-27-2004, 10:56 PM
Ha, ha. You know what I mean, so that if a line can't fit, it doesn't stretch, it goes into the next line.
Paul Jr
03-28-2004, 10:35 AM
I'm not sure you can, without manually inserting the line break...
Ben Rogers
03-28-2004, 02:05 PM
Really? That sucks... it seems there has to be some way.. I know that I could do it with PHP or JS, but that kind of kills the CSS styled ideal.... not to mention it'd be very inconvenient, installing a script for every page with <pre>formatted text... :confused:
Paul Jr
03-28-2004, 05:30 PM
I don't know for sure, so don't quote me on it.
Ben Rogers
03-28-2004, 06:47 PM
Originally posted by Paul Jr
on it. woot. anyways, if anyone else knows how to get them to act normal...,
ray326
03-28-2004, 09:41 PM
Originally posted by omega
woot. anyways, if anyone else knows how to get them to act normal...,
Don't use <pre> if you want them to "act normal". <pre> is by definition "not normal."
but with a little server side work, you could easily insert newlines every x# of characters...
Ben Rogers
03-29-2004, 02:27 PM
So, are you saying there's absolutely no CSS solution? Don't get into scripting now...
I was browsing the property index, and found nothing that looks like it would do the trick.