• Resolved 232creative

    (@232creative)


    I’m sure this has been answered but I couldn’t find it in my search.

    I have a table, the first column describes the items in the other columns, however in the other columns there are combined cells that I would like the center the text in.

    Also, the first column is too wide, is there some CSS that I can use to shorten it?

    Website here

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter 232creative

    (@232creative)

    Figured out the centering issue

    But column 1 is still wide…any suggestions?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    That large column width is the result of some really weird CSS code in your theme. It seems like you added the [table ... /] Shortcode into a special section/element of the theme?

    To override that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .motopress-embed-obj.fill-space .tablepress th,
    .motopress-embed-obj.fill-space .tablepress td {
    	width: auto;
    }

    Also, can you check if there are extra HTML tags around the Shortcode in that section (preferable in the “Text” and not the “Visual” editor, if you can change that there). It seems that there is an HTML <i> tag wrapped around the Shortcode.

    Regards,
    Tobias

    Thread Starter 232creative

    (@232creative)

    Thanks Tobias,

    The theme was purchased from Templatemonster so any ‘really weird CSS’ was done by the creator haha not myself, I honestly don’t know much about CSS code, hence me being here.

    The <i> tag in the HTML is from Motopress. The embed box feature puts <i> and obv </i> before and after but I inserted a wordpress text box I added the shortcode and it’s under the first table.

    Your CSS code worked but I was wondering if there is code to widen it or shorten it more accurately. I think i remember a code from a previous post about padding? is that an option?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that CSS code is coming from your theme. I didn’t mean to imply that you added it ??

    The extra <i> is gone now, that’s good!

    Now, to further adjust the column widths, you’d have to manually set them, also with CSS, see e.g. https://tablepress.org/faq/column-widths/

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Center Text in Combined Cells’ is closed to new replies.