• Resolved mpmchugh

    (@mpmchugh)


    This table is hard-coded to a width of 1215px in a style attribute within the Table tag —no idea where that is coming from.

    Using a width style in the shortcode does not override with the desired pixel width of 850px, but it does if I set it to 100%, but then it breaks the responsive feature.

    I’d like it to be 850px, the width of the site, but still be responsive — so a max-width of 850 would be ideal, but adding a max-width:850px also breaks the responsive mode, and a max-width:100% does nothing.

    Any idea how to fit it responsively to the container width?

    Where is it getting the 1215px with setting from?

    • This topic was modified 8 years, 7 months ago by mpmchugh.
    • This topic was modified 8 years, 7 months ago by mpmchugh.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mpmchugh

    (@mpmchugh)

    Oddly, setting a style width to 100% an addign a class of “nowrap” seemms to have kind of worked for desktops, but I’m not sure why.

    However, now it isn’t actually responsive on smaller screens.

    Still would like to know how to remove that default hard-coded width of 1215px that was in there, as that seems to be the culprit still.

    • This reply was modified 8 years, 7 months ago by mpmchugh.
    Plugin Author Meitar

    (@meitar)

    There is no default width assigned by this plugin. If there is output on your page that includes a hardcoded width attribute it is inserted by some other code and so you will simply need to investigate the remainder of your site to discern where it is coming from. Good luck.

    Thread Starter mpmchugh

    (@mpmchugh)

    It was a DataTables issue. Its auto width calculation was putting that 1215px width in there, and its calculations were incorrect. Adding “autoWidth”: false to the default settings let the 100% width take effect properly.

    Thanks.

    Plugin Author Meitar

    (@meitar)

    Great, glad to hear you found a resolution. 🙂

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

The topic ‘Table width hard-coded to 1215px’ is closed to new replies.