• Resolved kfranck

    (@kfranck)


    I would like to move the cell data in all my tables by a few pixels to the right. Centering the data is too much. Is there a way CSS code can move the cell data by three or four spaces to the right?

    This is what I used to center align the column, but it’s too much.
    .tablepress thead th,
    .tablepress .column-1,
    .tablepress .column-2 {
    text-align: center;
    }

    Thanks,
    Kurt
    https://bladeelectionresults.com

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Kurt,

    you could simply add padding to the left side of the cells:

    .tablepress thead th,
    .tablepress tbody td {
      padding-left: 20px;
    }

    Note that this will affect all tables unless you use the table-ID-based CSS selectors (like .tablepress-id-123 ....

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Align column by several pixels’ is closed to new replies.