• Resolved voicetoons

    (@voicetoons)


    Table width too wide on mobile phones. Tried css code found on this forum but none work. Can you please help? Thank you.

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

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.

    For this, I recommend taking a look at the possible modes for making a table work nicely on small screens, as available in the Responsive Tables feature module that is part of the TablePress premium versions.

    Best wishes,
    Tobias

    Thread Starter voicetoons

    (@voicetoons)

    You mean we have to upgrade to resize for mobile phones? There is no css that works resize the table for a mobile view?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    well, a table will normally automatically resize and adjust to small screens — as long as the content in it allows that. For example, if a table has very long words, these might result in the table still stretching beyond the edge of a small screen.

    So, the question is what you mean by “resize” here. To get around this issue, you could also reduce the font size on small screens (so that the long words fit into the columns), or you could instruct the browser to add line breaks inside the words (even though this might result in line breaks in wrong places). Therefore, such an approach is usually not that well suited, whereas the mentioned TablePress Pro feature offers other solutions.

    Regards,
    Tobias

    Thread Starter voicetoons

    (@voicetoons)

    Thank you Tobias. Is there a css code to reduce the font size on small mobile screens and not affect the rest of the page? Seems to be working now as the responsive just seems to be slow. But like to ability to reduce the size.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    reducing the font size on small screens only, without affecting the page, could be done with

    @media screen and (max-width: 768px) {
      .tablepress {
         font-size: 10px;
      }
    }

    — but I’m not sure that this is a better way than having the table scrollable.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mobile Table Width’ is closed to new replies.