• Resolved gaudy2016

    (@gaudy2016)


    Tobias, hi!

    Please – is it right syntax for definition of column width?

    .tablepress-zebricky-5 .column-1 {
    width: 300px !important;
    }

    When I made color ror the same column in earlier CSS can I use for width another? Or have I use one CSS for all formats each column?

    Many thanks

    Dan

    https://wordpress.org/plugins/tablepress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes, this is the correct syntax, except that I don’t know what “zebricky” is. You might therefore want to use

    .tablepress-id-5 .column-1 {
      width: 300px !important;
    }

    Using this in addition to the color is no problem. You could also combine it:

    .tablepress-id-5 .column-1 {
      width: 300px !important;
      color: #ff0000;
    }

    Regards,
    Tobias

    Thread Starter gaudy2016

    (@gaudy2016)

    Tobias, thanks. “Zebricky” is name of extra CSS class. I would like use it like a class.

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Dan,

    ah, ok. That’s no problem then, and the syntax is fine.

    Regards,
    Tobias

    Thread Starter gaudy2016

    (@gaudy2016)

    Tobias, it is good news for me! Bad reality is that it is not ok. Problem is in tables wider than page. For example here (2nd column) 🙁

    http://pratelegolfu.cz/hcp-cup/zebricek-hcp-cup/hcp-cup-2016-muzi/

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I can’t see your CSS in the page, at the moment?

    It might help to additionally change the view mode:

    .tablepress-id-11 {
      table-layout: fixed;
    }

    But yet, setting widths in tables that are wide than the page is very tricky :-/

    Regards,
    Tobias

    Thread Starter gaudy2016

    (@gaudy2016)

    Yes, I understand, dont worry. FYI – last advice crashed the tab.

    Thanks

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Dan,

    it crashed the tab?! I have no idea how that would be possible. Which browser?

    Regards,
    Tobias

    Thread Starter gaudy2016

    (@gaudy2016)

    It was Safari. Yes, there was 2nd column across the full screen and everything from 3rd column ws corrupted and pressed.

    But as I wrote, dont worry, I use this visual.

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Dan,

    really weird… Sorry that I couldn’t help with a solution here.

    Best wishes,
    Tobias

    Thread Starter gaudy2016

    (@gaudy2016)

    It is ok, I start to use your plugin for my 6 tournament orders with pleasure! It is news for my players and they are excited 😉

    Thanks and good luck!

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Best wishes,
    Tobias

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

The topic ‘Column width by CSS’ is closed to new replies.