Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter projectsentinel

    (@projectsentinel)

    Hello , projectsentinel

    may be this can help you please place this in style.css

    /*For  the table.*/
    
    #maincontentcenter table {
        margin: 0 auto;
    border: 1px solid #ccc;
    }
    
    /*for div element within a table.*/
    table tbody tr td .wp-caption {
        margin: 0 auto;
    }
    table tbody tr td {
        text-align: center;
    }
    Thread Starter projectsentinel

    (@projectsentinel)

    Looks amazing, thank you so much!! What about showing the line down the middle of each?

    Hey! , projectsentinel

    happy to hear that previous code works, now for making line in middle please add this to the style.css ,

    #maincontentcenter table {
        border-collapse: collapse; //add this line also to table css
    }
    
    //for middle line
    #maincontentcenter table tbody tr td:first-child {
        border-right: 1px solid #ccc;
    }
    Thread Starter projectsentinel

    (@projectsentinel)

    All set! You are the best! Thank you for all of your help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Show table borders/center’ is closed to new replies.