• Resolved freshes

    (@freshes)


    Hi there,

    first of all: great plugin, I appreciate it very much.

    I have some trouble to clip my text that overflows the element’s box. overflow: hidden and text-overflow: ellipsis do not have any impact to my table. Indeed white-space: nowrap seems to work, it doesn’t slip into the next line, but instead it pushes the elements on the right side further outwards. Can you help?

    Code is a bit chaotic, hope it doesn’t buffer you to much:

    .tablepress-id-5 {
    	border: 10px solid white;
    	outline: 1px solid #D1D1D1;
    	outline-offset: -1px;
    	width: 300px;
    }
    
    .tablepress-id-5 {
    	width: 200px;
    	table-layout: fixed;
    }
    
    .tablepress-id-5 td {
    	white-space: nowrap;
    	overflow: hidden;
    	text-overflow: ellipsis;
    }
    
    .tablepress-id-5 .column-1 {
    	width: 10px;
    }
    
    .tablepress-id-5 .column-2 {
    	width: 150px;
    }
    
    .tablepress-id-5 .column-3 {
    	font-size: 12px;
    	width: 140px;
    }
    
    .tablepress-id-5 thead td,
    .tablepress-id-5 thead th,
    .tablepress-id-5 tfoot th,
    .tablepress-id-5 tbody td {
    	border: none;
    }
    
    .tablepress .odd td {
    	background-color: #F0F0F0;
    }
    
    .widget td,
    .widget th {
    	font-family: arial;
    	font-size: 12px;
    }
    
    .widget thead th {
    	background-color: #D11010;
    }
    
    .widget .row-1 {
    	color: #ffffff;
    }
    
    .widget .column-2 {
    	font-weight: bold;
    }
    
    .widget .row-1 .column-1 {
    	text-align: center;
    }
    
    .row-2 .column-1,
    .row-3 .column-1,
    .row-4 .column-1,
    .row-5 .column-1,
    .row-6 .column-1 {
    	text-align: center;
    }
    
    .widget .row-2 .column-2 {
    	text-align: left;
    }
    
    .widget .row-3 .column-2 {
    	text-align: left;
    }
    
    .widget .row-4 .column-2 {
    	text-align: left;
    }
    
    .widget .row-5 .column-2 {
    	text-align: left;
    }
    
    .widget .row-6 .column-2 {
    	text-align: left;
    }
    
    .row-7 .column-1 {
    	background: #FFFFFF;
    }
    
    .row-7 .column-3 {
    	background: #FFFFFF;
    }
    
    .tablepress-id-5 .row-7 td {
    	background-color: #ffffff;
    }

    http://ww.wp.xz.cn/extend/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, handling long text in tables is indeed ugly, as browsers apply a different behavior there, especially for the calculation of widths.
    To find out more, could you please post a link to the page with the table in question and describe what exactly you are trying to achieve? Thanks!

    Regards,
    Tobias

    Thread Starter freshes

    (@freshes)

    link

    You can find the regarding table in the sidebar under the term “US-Kinocharts”. The text in row-4, column-2 slipped into the next line before. I’m trying to avoid that and make the text overflow with ellipses. As you can see, white-space: nowrap pushes the content on the right side further outwards

    Regards Daniel

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Daniel,

    thanks for the link, and for the description!
    I can see what you are trying to do, but unfortunately, I don’t really see why it’s not working 🙁
    You already have the CSS code that is usually necessary for such cases in your “Custom CSS”, like setting the column and table widths, and the table-layout: fixed property.
    So, your best chance might be to ask some CSS experts, e.g. on StackExchange or stackoverflow. Maybe those guys can find out why this is not working.
    Sorry for not having better news 🙁

    Regards,
    Tobias

    Thread Starter freshes

    (@freshes)

    no problem, thanks for trying.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, that’s the least I can do!
    If you find a solution, please let me know!

    Best wishes,
    Tobias

    Thread Starter freshes

    (@freshes)

    Finally it works. I didn’t find a solution really, just removed the plugin and all related data and made a fresh installation, pasted the code above back in custom CSS and that’s it. Weird. Thanks for your effort anyway, keep it up!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that’s great to hear! 🙂 I don’t really see how uninstalling and re-installing could have fixed this, but great that it works now! 🙂

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Text Overflow does not work properly’ is closed to new replies.