1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Responsive view of table BBCode

Discussion in 'XenForo Questions and Support' started by abdfahim, Oct 10, 2015.

  1. abdfahim

    abdfahim Active Member


    I need to add tables frequently in my posts. So I defined bbcode for adding html tables inside the post. The only issue is, when table width is more than device width (e.g. lots of columns), the responsive view crops the table.

    So, I am just wondering what is the better approach to achieve something similar to table inside the post.

    Any suggestion will be highly appreciated.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I wrap my tables in a div which has overflow, so the table content can be viewed by moving the scrollbar.
    abdfahim likes this.
  3. abdfahim

    abdfahim Active Member

    Awesome idea, thanks for that. So is it enough if I just edit my BBcode to replace [table] as

    <div style="overflow:auto"><table>{text}</table></div>
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can try depending on how your bb code is set up.

    It may require an outer div though.
    abdfahim likes this.

Share This Page