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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Break long text

Status
Not open for further replies.

lawlegacy

IS-IT--Management
Joined
Jun 5, 2006
Messages
53
Location
US
I have a column with a set width. Is there a way to break a long text to prevent formatting issues?

For instance " will cause the column to increase its width and formatting is lost.
 
You could add [tt]overflow: hidden;[/tt] and the text would simply be cropped. You could add [tt]overflow: auto;[/tt] and your column would get a scrollbar when such a work would get entered. If you worry only about IE, you could add [tt]word-wrap: break-word;[/tt] to make browser insert arbitrary break in the word to preserve the table layout.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top