• Resolved Hkroed

    (@sprithansi)


    Hi!
    I try to center text in row 2 and 3, and columns 18,19 and 20

    I use this shortcode
    [table id=6 hide_columns=all hide_rows=all show_columns="18,19,20" show_rows="2,3" shortcodes_before_formulas=true /]

    and this CSS-code

    .tablepress-id-6 .row-2 .column-18
    .tablepress-id-6 .row-3 .column-18
    .tablepress-id-6 .row-2 .column-19
    .tablepress-id-6 .row-3 .column-19
    .tablepress-id-6 .row-2 .column-20
    .tablepress-id-6 .row-3 .column-20 {
    	font-size: 15px;
    	text-align: center;
    	vertical-align: middle;
    }
    

    But the text isn’t centered….. What do I do wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Hkroed

    (@sprithansi)

    BTW, the table is here
    https://tunebrygget.no/batchoversikt/
    ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    In the CSS code, you’ll have to start counting with the actual columns that are visible, not the column numbers as they appear on the “Edit” screen.

    From what I can see, you already found that however? The small table at the top of that page is centered for me.

    Regards,
    Tobias

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