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

    (@tickett0)

    Current code inputted into Custom CSS:

    .wpsm-comptable td:first-child{width:30% !important}
    .wpsm-comptable td:nth-child(2){width:15% !important}
    .wpsm-comptable td:nth-child(3){width:15% !important}
    .wpsm-comptable td:nth-child(4){width:40% !important}

    ^^ Good for first table. Not for second…

    • This reply was modified 8 years, 4 months ago by tickett0.
    Thread Starter tickett0

    (@tickett0)

    FIXED:

    Update using table IDs (from short code) and custom CSS. Example below:

    #wpsm-table-2 td:first-child{width:25% !important}
    #wpsm-table-2 td:nth-child(2){width:25% !important}
    #wpsm-table-2 td:nth-child(3){width:50% !important}

    #wpsm-table-3 td:first-child{width:25% !important}
    #wpsm-table-3 td:nth-child(2){width:25% !important}
    #wpsm-table-3 td:nth-child(3){width:25% !important}
    #wpsm-table-3 td:nth-child(4){width:25% !important}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Width When MULTIPLE Tables’ is closed to new replies.