• Resolved ramonglhf

    (@ramonglhf)


    Hi again

    Sorry for asking you this but I looked on others post and the FAQ and I tried many things but is not solved yet.

    I have a 5 column table, and I want the first one to be bigger (28%) and the other 4 columns to have the same widht (18%)

    I used this code:

    .tablepress-id-5 .column-1 {
    width: 28% !important;
    }

    .tablepress-id-5 .column-2;
    .tablepress-id-5 .column-3;
    .tablepress-id-5 .column-4;
    .tablepress-id-5 .column-5 {
    width: 18% !important;
    }

    But the result is not as I expected. The columns width is “random”.

    The text inside columns 2-5 have more or less the same lenght so it not should be a problem.

    Any idea?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    It looks like you used a semicolon ; in the CSS code, where you’d need to use a comma ,. Please try again with

    .tablepress-id-5 .column-2,
    .tablepress-id-5 .column-3,
    .tablepress-id-5 .column-4,
    .tablepress-id-5 .column-5 {
      width: 18% !important;
    }

    Regards,
    Tobias

    Thread Starter ramonglhf

    (@ramonglhf)

    Hi @tobiasbg

    I feel stupid….

    Many thanks! it worked!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Column width not as I want’ is closed to new replies.