• Resolved vgray

    (@vgray)


    is it possible to “comment” out code so that I can organize my custom CSS better?

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, the “Custom CSS” text area in TablePress supports normal CSS comments, like this:

    /* This is a comment. */
    .tablepress {
      color: #ff0000;
    }

    Thus, just put in your comment text wrapped in /* and */ characters.

    Regards,
    Tobias

    Thread Starter vgray

    (@vgray)

    Thank you so much!

    One more question, is there a way to have tables auto-configure depending on if they are viewed on a mobile device? I have issues with horizontal scrolling working on some mobile devices and not on others, and would like to see if the table can just center itself and configure size to fit on the screen.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    can you explain where scrolling is working and where it’s not? I haven’t really seen different results between different mobile devices here…

    Aas for “auto-configuring”: Well, tables are kind of doing that already, to the extent that the column widths allow it (that’s why things like scrolling are actually necessary sometimes). The only remaining option here would be to instruct the browser to add more line breaks in the table content, but that can result in ugly word-wrapping in long words.

    Regards,
    Tobias

    Thread Starter vgray

    (@vgray)

    It is an intermittent issue that I have experienced in the time I have used Tablepress.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    to clarify, have you turned on the “Horizontal Scrolling” checkbox on the table’s “Edit” screen or are you using the scroll mode of the Responsive Tables Extension?
    Can you maybe post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

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

The topic ‘Tablepress Custom CSS “Comments”’ is closed to new replies.