• Resolved stanbeck

    (@stanbeck)


    How can I change the column width – I’m trying this with the class=”no-datatables” set (since having the javascript enabled embeds the style in the html instead of in the css and there’s no way that I know to override that):

    .igsv-table .col-3 { width: 10px; }

    I love the plugin, btw. Thanks for taking the time to put it together!

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Meitar

    (@meitar)

    Columns on tables (especially in CSS) are a little tricky, but you have the right idea. The trouble is that, for table cells, width really means min-width, because Web browsers do a lot of calculations on the table element itself as well as its other cells to determine the actual width.

    You might consider reading this helpful Stack Overflow post about the issue, which I hope helps you out. 🙂 Good luck.

    Thread Starter stanbeck

    (@stanbeck)

    Thank you very much – works great!

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

The topic ‘Column Width’ is closed to new replies.