New Landing How can we help? Themeforest Theme Support Dante Center align text in Table Header

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #189343
    CTMaster
    Member
    Post count: 22

    I was able to center-align the text of the body of the table on this page but not the heading — I wondered what I was missing?

    Thanks for your help.

    #189344
    CTMaster
    Member
    Post count: 22
    This reply has been marked as private.
    #189514
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    table.standard_minimal th,table.standard_minimal td{
    text-align:center !important;
    }

    Thanks
    Mohammad

    #190775
    CTMaster
    Member
    Post count: 22

    I’d like some tables to have the header aligned left and some to have the header aligned center, how does that change the code? Thank you.

    #190788
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You have to prefix it with the extra css class field used in the table extra class.

    .mLevelsTable-1 table.standard_minimal th {
      text-align: right!important;
    }

    This will apply to only the mLevelsTable-1 table, you should add an extra class specifically to each table.

    So table 1 extra class should look like this
    masteryLevelsTable mLevelsTable-1

    Hope it helps.

    -Rui

    #192124
    CTMaster
    Member
    Post count: 22

    Beautiful, thank you so much! I wasn’t clear on how the extra class got labeled so a huge help, thanks again!

    #192136
    CTMaster
    Member
    Post count: 22
    This reply has been marked as private.
    #192205
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    table.sf-table tbody tr:nth-child(odd) {
      background: #eee;
    }
    

    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register