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

Wrapping long text

Status
Not open for further replies.

transparent

Programmer
Sep 15, 2001
333
GB
I have a table which contains tabular data. Included in this data are URLS.

These URLS can be very long.

I cannot programitcally split the URL, so I am stuck with these long URLS.

In IE the width of the table column takes precidence over the width of the url and it wraps.

This does not happen in Firefox. Is there a way to make text wrap within the width of the column via CSS in Firefox?

 
I don't think it's possible to force a wrap... but you can force a scrollbar, or clipping to occur with:

Code:
td {
   overflow: auto;
}

or

Code:
td {
   overflow: hidden;
}

respectively (although you will need to specify a width for the cells).

Once thing you might try is to give your table a style of "table-layout: fixed;". I'm not sure if this gives any better wrapping control or no, but it's worth a crack.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top