WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] (wp-table-reloaded) Aligning one column content, padding another (3 posts)

  1. David Borrink
    Member
    Posted 4 years ago #

    Hi Tobias,

    Another CSS question: I'm trying to set one column's contents as align: center and I'm having difficulties.

    I'm trying:

    .wp-table-reloaded-id-1 .column-3 td{
      align: center;
    }
    .wp-table-reloaded-id-1 .column-3 td{
      text-align: center;
    }

    and neither are working. Am I missing something here?

    I'm also trying to put a padding-right: 10px; in one column and that isn't working either:

    .wp-table-reloaded-id-1 .column-2 td{
      padding-right: 10px;
    }
  2. TobiasBg
    Member
    Posted 4 years ago #

    Hi,

    your CSS is not working, because the selector is off a little bit.
    .column-X is a class of the <td> HTML tag, thus it must not be part of the selector.

    .wp-table-reloaded-id-1 .column-3 {
      text-align: center;
    }

    will work.

    Best wishes,
    Tobias

  3. David Borrink
    Member
    Posted 4 years ago #

    Yes, that was it. Pulled td out of both situations and they're fine. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic