Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to wrap continous text?

Reply
Thread Tools

How to wrap continous text?

 
 
goofire@gmail.com
Guest
Posts: n/a
 
      06-25-2005
Hi.

I have a line of text that is hundreds of characters long, and that I
need to display on a page.

Because the line is continuous with no spaces, the browser won't wrap
the text. My goal is to have the text wrap according to the size of
the browser window.

Anyone know how to do this? Thanks!

Example code:

<html>
<body>
.................................................. .................................................. .................................................. ................................................
</body>
</html>

 
Reply With Quote
 
 
 
 
goofire@gmail.com
Guest
Posts: n/a
 
      06-25-2005

Sorry, in my example code, the line of dot's should be continuous.

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      06-25-2005
wrote:

> I have a line of text that is hundreds of characters long, and that I
> need to display on a page.
>
> Because the line is continuous with no spaces, the browser won't wrap
> the text. My goal is to have the text wrap according to the size of
> the browser window.
>
> Anyone know how to do this?


Add spaces or soft hypens (­, but support is reported to be generally
poor) to the text.



--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      06-25-2005
wrote:

> I have a line of text that is hundreds of characters long, and that I
> need to display on a page.


> Because the line is continuous with no spaces, the browser won't wrap


Okay, I'll bite: what kind of line is hundreds of unspaced characters
long?

--
Blinky
International Thank Your Developers Week - June 20-27, 2005
Say thanks to your favorite Open Source team one way or another.
http://blinkynet.net/comp/tydevs.html Yes, Eight Days A Week.
 
Reply With Quote
 
goofire@gmail.com
Guest
Posts: n/a
 
      06-25-2005

If I simply add a space between each character it half's the amount of
information I can display on screen at once.

I want to maximize what is seen in the window, and that's why I want to
keep the lines continuous and have them wrap within the browser.

It sounds like there is basically no way to do this (?)

 
Reply With Quote
 
goofire@gmail.com
Guest
Posts: n/a
 
      06-25-2005

Genome.

 
Reply With Quote
 
goofire@gmail.com
Guest
Posts: n/a
 
      06-25-2005

Ah yes, soft hyphens work in Firefox, but not Safari it seems. Thanks
for the half fix!

 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      06-25-2005
On 25 Jun 2005 13:58:45 GMT, Blinky the Shark <>
wrote:

>> Because the line is continuous with no spaces, the browser won't wrap

>
>Okay, I'll bite: what kind of line is hundreds of unspaced characters
>long?


I can think of plenty - just not any that someone would really need to
read.

You can shove spaces in all over the place (maybe every character), then
use CSS and word-spacing to make the spaces unnoticeable, but they'll
still permit wrapping.
 
Reply With Quote
 
Lauri Raittila
Guest
Posts: n/a
 
      06-25-2005
in alt.html, wrote:

> Because the line is continuous with no spaces, the browser won't wrap
> the text. My goal is to have the text wrap according to the size of
> the browser window.
>
> Anyone know how to do this? Thanks!


CSS: white-spacere-line;
http://www.w3.org/TR/CSS21/text.html#white-space-prop

For IE, word-wrap:break-word might work.

Don't know much about support.

And then there is of course <wbr>. More:
http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      06-25-2005
Andy Dingley wrote:
> On 25 Jun 2005 13:58:45 GMT, Blinky the Shark <>
> wrote:


>>> Because the line is continuous with no spaces, the browser won't wrap


>>Okay, I'll bite: what kind of line is hundreds of unspaced characters
>>long?


> I can think of plenty - just not any that someone would really need to
> read.


Okay, what are a couple?

--
Blinky
International Thank Your Developers Week - June 20-27, 2005
Say thanks to your favorite Open Source team one way or another.
http://blinkynet.net/comp/tydevs.html Yes, Eight Days A Week.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To wrap or not to wrap? Aaron Fude Java 12 05-10-2008 06:33 PM
Wrap computer components in bubble wrap? Ickshka Computer Support 7 05-05-2006 05:54 PM
Continous Ink Systems Patrick Devoy Digital Photography 3 01-06-2004 03:04 AM
Text::Wrap::wrap difference Art Werschulz Perl Misc 1 09-25-2003 06:15 PM
Text::Wrap::wrap difference Art Werschulz Perl Misc 0 09-22-2003 02:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57