• Resolved DukeArdelis

    (@dukeardelis)


    I have difficulty with tables, I cant remove the default padding, I need it to be 1 or 2 px, and no mater what code I put in the HTML code I don’t get any result. I also tried to make the tables smaller I reduced the height to 20px, but still they remained 49 px when empty, and up to 60px with a small icon inside (inspected with firefox “Inspect element”.

    I need to place text in one table and an icon to its neighbor on the right size 16×16 px.

    I have tried a dozen code variations, but nothing works.

    https://ww.wp.xz.cn/plugins/wp-edit/

Viewing 1 replies (of 1 total)
  • Plugin Author Josh

    (@josh401)

    Hello,

    Tables are tricky with html coding. This is because:
    1) WP themes almost ALWAYS add css for tables.
    2) The tinymce editor also adds css for tables.
    3) When modifying the table attributes; additional css is added inline.

    So, when the final table is output… all three of these css rules are evaluated and applied.

    Most likely, the styling is coming from your theme. You can look at how your theme styles tables to get a better idea.

    Do you mind sharing a link to a test table you’ve created, that illustrates the issue?

Viewing 1 replies (of 1 total)

The topic ‘Define custom padding in tables’ is closed to new replies.