It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

TD word wrap

TD word wrap

Postby danny on Sun Apr 01, 2007 5:02 pm

Hello all,

I use the following css script:

td { word-wrap:break-word;

}

Now each word will be broke, even if there are no white spaces. In IE no problems, but in mozilla doesnt work. Does anyone knows why? The width of the TD will be exceeded big time.

Thanks
danny
 
Posts: 8
Joined: Sun Apr 01, 2007 9:07 am

Postby webmaster on Sun Apr 01, 2007 10:18 pm

Got this from another site:

{word-wrap:;} is an IE proprietary property, and not a part of css. firefox's handling is correct. Unfortunately, FF does not support a soft hyphen ­/­. so that's not an option. You could possibly insert a hair or thin space,  /  (check me on the numeric entity) and  / , respectively.

Making {overflow: hidden;} would cut the overflow off, and {overflow: auto;} would cause the overflow to enable scrolling.


It should work
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby danny on Mon Apr 02, 2007 2:59 am

Sorry, but hair/thin space?, where do I insert that? And what are all those numbers for?

Thanks Danny
danny
 
Posts: 8
Joined: Sun Apr 01, 2007 9:07 am

Postby doctordigital84 on Fri Apr 06, 2007 2:45 am

use the overflow property instead

"overflow: auto;" rocks
doctordigital84
 
Posts: 12
Joined: Fri Apr 06, 2007 2:05 am

Postby danny on Fri Apr 06, 2007 4:23 am

I used it, but no success. It doesnt work.

td { word-wrap:break-word;

"overflow: auto;" rocks

}
danny
 
Posts: 8
Joined: Sun Apr 01, 2007 9:07 am


Who is online

Users browsing this forum: No registered users and 0 guests