WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] setting column width (6 posts)

  1. skipperdoodle
    Member
    Posted 11 months ago #

    The instructions for setting column width could not be clearer.
    Unfortunately, no matter what I do, I'm unable to keep the tables from stretching the width of the text area.

    I am inputting these exactly as instructed and...no dice.

    And, just to test, I have followed the directions on changing font and color and that worked fine. So the problem doesn't appear to be something with my ability to follow directions.

    Can anyone shed any light on this? I've spent well over an hour on it and, for the life of me, I'm out of ideas. Thanks!

    http://wordpress.org/plugins/tablepress/

  2. skipperdoodle
    Member
    Posted 11 months ago #

    Ok, I take it back...it does appear to be doing something...but not what I'm trying to get it to do. Basically, I'm trying to get the table to sit on half of the text area, sort of like an image, and not take up the whole space. Does that make sense? Thanks

  3. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Could you please post a link to the page with the table in question, so that I can take a direct look? Thanks!

    Regards,
    Tobias

  4. skipperdoodle
    Member
    Posted 11 months ago #

    Hey thanks for responding. the site isn't live yet so I can't post a link. The bottom line is, though, that tablepress appear to stretch the width of the text column, regardless of how wide that column is, right? In other words, if I wanted tablepresss to be, say, half the width of the text column in which it appears, there would be nothing I could do, correct?

    Thanks again...

  5. Haoxian
    Member
    Posted 11 months ago #

    @skipperdoodle,

    If you want to set the table width to be half of your page( does your "half the width of the text column" means this?), you could follow the following instruction.

    Add the following code to the Custom CSS field (that just needs to be added to the “Custom CSS” textarea in the “Plugin Options”):

    .tablepress-id-N {
    	width: 50%;
    }

    Assuming that you know how to do with custom css. If not, please reply to notify me.

  6. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    TablePress will set a width, but it's up to the browser to take that or not. And in some tables, the content simply requires a larger width, e.g. if there are very long words in a column that can not be word-wrapped.

    To find out if that is the problem for your site, I'll need to see the page with the table. Can you maybe create test page where I can see this table?

    Otherwise, if reducing the width of the table to half the page, please try lonelicloud's code suggestion.

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic