You are here: Re: How to wrap continous text? « HTML « IT news, forums, messages
Re: How to wrap continous text?

Posted by AF on 06/25/05 21:23

On 25 Jun 2005 06:00:28 -0700, goofire@gmail.com wrote:

>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>

Do you have a php enabled web server?

If so look into using php to break a long line into smaller strings.
then display the strings one after another.

If you need people to be able to access the data as one long line and
then use it as such, give them a link to download text file with the
long string in it.

And if you don't want to go to any more work than necessary, as in
typing and retype the string, put the string in a text file. Then
look into the php include command to retrieve the line as data from
the above text file, parse the line, ie break it up into smaller
variables, display the variables and a link to down load the file.
Then you have only typed the line in once.

By the way, if you have many of these one liners to show on the web,
and thus have many html pages to create, there are other ways php can
help you. You can for example create one html file as a template for
displaying a line, if that is what you want to do, and you can then
use the php to in effect create a web page per line. It can also
create links, and do many other things automatically. php saves a web
master a lot of time whenever he or she has repetitious data to
publish.

If you are interested, just send me an email ,
alfrick@NOJUNKMAILamericanbestmortgages.com
, taking out the appropriate letters, and give me some idea of what
you are trying to do. I can give you a rough idea of the commands and
logic you need to follow for no charge. I don't have the time to
teach you php, but it is actually very simple to learn, especially
considering how powerful it is.

I say easy to learn. What I should say is that while there is a lot
to php, a novice with little knowledge of a few commands, syntax, and
logic can be very effective on the web. To be an expert takes a lot
longer.






Best regards,

Al
http://www.affordablefloridainsurance.com
http://www.americanbestmortgages.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация