/    Sign up×
Community /Pin to ProfileBookmark

Display large text in a TD

Does anyone know how to display a large amount of text (a paragraph of text sent from PHP) in a fixed width <TD> without loosing line breaks and size?

Any help would be appreciated.

Thanks
B.S.Girish

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@SanderKFeb 24.2005 — [I]a paragraph of text sent from PH[/I]

Aren't you only storing the text in the database (I suppose you get the text from a database), and not the size? You're supposed to set the size of the text in the HTML itself.

About the linebreaks, if I understand you right, you need the nl2br function for this.

http://php.net/nl2br
Copy linkTweet thisAlerts:
@the_treeFeb 24.2005 — [i]Originally posted by SanderK [/i]

[b]Aren't you only storing the text in the database (I suppose you get the text from a database), and not the size?[/b][/QUOTE]
He said a large [i]amount[/i] of text, as in lots of characters.

If the text is larger than a paragraph then it wont be tabular data, so a table would not be a good idea.
×

Success!

Help @girishbs spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...