• Resolved bobbiedoo

    (@bobbiedoo)


    I have a table which has same content length but I discovered that some cells still wrap their content. How can I avoid this. I want all the rows to have same look without any distorted cells.

    Sample: gestationperiods.com/cattle-gestation-table

    • This topic was modified 4 years, 12 months ago by bobbiedoo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1 thead th {
      white-space: nowrap;
    }

    Regards,
    Tobias

    Thread Starter bobbiedoo

    (@bobbiedoo)

    Thanks,but how can I apply this to all tables?

    Thread Starter bobbiedoo

    (@bobbiedoo)

    By the way, I tried the css code above but it didn’t work.

    • This reply was modified 4 years, 12 months ago by bobbiedoo.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    good to hear that this helped! To use this on all tables, please use this modified CSS:

    .tablepress thead th {
      white-space: nowrap;
    }

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to avoid wrapping of cell content’ is closed to new replies.