Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting max-length/width for <pre> element

Status
Not open for further replies.

Twizz

Technical User
Mar 10, 2004
3
SE
Hi,

I need to fit text from a database in a <TD> element and I want to keep the width fixed. Since the text is user submitted I want to present it as close to the original as possble without destroying the table. I decided <pre> was the way to go but this destroys the layout if lines are to long.

So, I want to keep the text as is but force linebreaks. The allowed max width is 750.

Is ther anyway to do this?

Thanks in advance.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top