• I have a table that displays 3 columns on a page using the [cfdb-table] shortcode. Using the suggestions in your posts for styling, I can get the column titles centered for all 3 columns, and cell contents centered for the 2 columns that need centering. However, the table displays in nearly 100% of the browser width. I’d like to change the total width and the widths of the individual columns. I have tried various iterations of the “style” property in the shortcode, as well as external CSS injection by ID (my theme has a page where I can specify custom CSS), but the columns stay each about 1/3 the total browser window width. The fact that my knowledge of CSS is miniscule doesn’t help. None of the multiple web searches I’ve tried have yielded functional results. Any suggestions on how to specify table column widths, either in the shortcode or on the theme’s CSS page, would be appreciated!

    https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    You should be able to set CSS on the table #your_table_id {width: 50%} or something like that. But I don’t want to get into supporting people’s CSS on their sites.

    Thread Starter jsa922

    (@jsa922)

    I understand. Your suggestion has a syntax distinct from any I’ve tried so far, so it may get me in the right direction. I can usually figure the specifics once I have a general idea of syntax and placement (ie: inline or external).

    I want to remove a column name Submitted Login from CFDB, also i don’t need this column to be added in CSV file which I create using this plugin.

    Plugin Author Michael Simpson

    (@msimpson)

    @umair

    The field cannot be removed.

    CSV Export: Use the Short Code Builder page to create and export link using “show” or “hide” options.

    PS. please start a new thread on the forum for new questions.

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

The topic ‘Styling table columns’ is closed to new replies.