• Resolved Jasline

    (@shoheiyuna)


    Hi!

    I’ve noticed that the text in my tables are justified and they are being cut off instead of the words being spaced out more.

    I’m looking at either aligning the text left or having the text justify correctly.
    I’ve tried adding the following into the TablePress’ CSS but didn’t work. Really appreciate your advice on this, thank you so much in advance!

    Custom CSS that I tried adding but didn’t work:

    .tablepress thead th,
    .tablepress tbody td {
      text-align: center;
      vertical-align: middle;
    }

    The custom CSS that I have in place right now:

    .tablepress {
    	width: 100%;
    }
    
    .tablepress .column-1 {
    	width: 50%;
    }
    
    .tablepress .column-2 {
    	width: 50%;
    }
    
    .tablepress .column-1 img {
    	width: 100%;
    }
    
    .tablepress .column-2 img {
    	width: 100%;
    }
    
    .tablepress-id-179 .column-1 {
    	width: 20%;
    }
    
    .tablepress-id-179 .column-2 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-3 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-4 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-5 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-6 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-7 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-8 {
    	width: 10%;
    }
    
    .tablepress-id-179 .column-9 {
    	width: 10%;
    }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not sure that I fully understand. Do you mean that words are line-wrapped directly inside the words? This is caused by your theme. To fix it, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress {
        word-break: normal;
    }

    You might not even need most of your other “Custom CSS” then.

    Regards,
    Tobias

    Thread Starter Jasline

    (@shoheiyuna)

    Sorry for getting back late, just added your fix and it works beautifully. Thank you!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias
    ?
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Align text to left’ is closed to new replies.