How do I overflow text to the left in a table?

Posted by remack on Stack Overflow See other posts from Stack Overflow or by remack
Published on 2010-06-07T23:59:08Z Indexed on 2010/06/08 0:02 UTC
Read the original article Hit count: 145

Filed under:
|

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 text, the cell below should display "67890" instead of "12345".

This needs to work in IE7+ at minimum. Is there a way to do this in css without any JavaScript?

<table style="table-layout:fixed">
  <tr>
    <TD>
      12334567890
   </TD>
 </tr>
</table>

© Stack Overflow or respective owner

Related posts about html

Related posts about css