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
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
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…
@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.
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