Skip to content Skip to sidebar Skip to footer

How Do I Overflow Text To The Left In A Table?

I have a table with fixed layout. On overflow, the contents of cells should clip from the left instead of the right. That is, if the width of the TD is less than the width of the t

Solution 1:

you could use:

direction:rtl;

Solution 2:

I haven´t tried it, but you could try text-align:right or wrap the contents in a div and float that right.


Solution 3:

You can use the CSS3 property word-wrap: break-word but there's no way to control where it will break the word. It will fit whatever it can on the line and then break it down to the next, it won't keep the lines of equal length.

There is also the <wbr> tag but I've never used or experimented with it, so I can't really tell you how to use it.


Post a Comment for "How Do I Overflow Text To The Left In A Table?"