• Hi All,

    I have read through past forum but I am still unsure of how to go about doing it I want to have column 2 to have longer width to contain my content rather going to 2nd line. Please refer to my code below and I will appreciate any help given. Thank you! My URL – http://www.qmedical.com.sg/health-screening-packages/

    .tablepress-id-12 .column-1 {
    width: 30px;
    }

    ,
    .tablepress-id-12 .column-5 {
    width: 30px;
    }

    ,
    .tablepress-id-12 .column-3 {
    width: 30px;
    }

    ,
    .tablepress-id-12 .column-4 {
    width: 30px;
    }

    ,
    .tablepress-id-12 .column-2 {
    width: 100px;
    }

Viewing 1 replies (of 1 total)
  • I think you will need to add the table-layout property to the table like this

    .tablepress {
        border: medium none;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 1em;
        table-layout: fixed;
        width: 100%;
    }

    (other settings are already in tablepress-combined.min.css)

Viewing 1 replies (of 1 total)

The topic ‘Table wordpress formatting table width’ is closed to new replies.