Title: Change column width
Last modified: September 28, 2018

---

# Change column width

 *  Resolved [vihali](https://wordpress.org/support/users/vihali/)
 * (@vihali)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/change-column-width-6/)
 * I would like to set widths of some first columns in order to push the last column
   which contains a long text to child row.
 * Please correct my shortcode, it doesnt work.
 * [gdoc key=”[https://docs.google.com/spreadsheets/d/15l9FAvUOvJxlWb6FHJr9bQFs0d28SnNX4eCYEitN-0o/edit#gid=182379300&#8243](https://docs.google.com/spreadsheets/d/15l9FAvUOvJxlWb6FHJr9bQFs0d28SnNX4eCYEitN-0o/edit#gid=182379300&#8243);
   datatables_column_defs=”%5B{“width”:”50%”, “targets”:”0″}%5D”]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-column-width-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [gerardhaim](https://wordpress.org/support/users/gerardhaim/)
 * (@gerardhaim)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10517771)
 * try with this (I’m not sure…)
    ‘%5B%5B{“width”:”50%”, “targets”:”0″}%5D%5D’ but
   the best and easier is to use your CSS file to do it.
 *  Thread Starter [vihali](https://wordpress.org/support/users/vihali/)
 * (@vihali)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10519718)
 * [@gerardhaim](https://wordpress.org/support/users/gerardhaim/)
 * It does not work either. It seems that all the tag beginning with datatables_column_defs
   do not work as I tried many tags but I could not see any change. There should
   be something wrong that I could not figure out.
 * I will try CSS as you suggested. Too much for a guy like me 🙂 Perhaps I will
   ask an IT guy to help me.
 * Thank you very much.
    -  This reply was modified 7 years, 10 months ago by [vihali](https://wordpress.org/support/users/vihali/).
 *  [gerardhaim](https://wordpress.org/support/users/gerardhaim/)
 * (@gerardhaim)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10520145)
 * I can try to help you more if you send me your CSS file
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10530973)
 * It is best to use [DataTables’s built-in `responsive.breakpoints` configuration option](https://datatables.net/reference/option/responsive.breakpoints)
   for this task, not your own CSS. Consult the DataTables support forum for help
   with DataTables, as per usual.
 *  [zatrox](https://wordpress.org/support/users/zatrox/)
 * (@zatrox)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10595175)
 * Thank you a lot. Should I include this options to custom.css file?
 *  Thread Starter [vihali](https://wordpress.org/support/users/vihali/)
 * (@vihali)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10647920)
 * Hmm, I read the description of responsive.breakpoint but do not know how to translate
   that “language” into language using [gdoc]. It would be better to have an example
   of how to implement datatables codes into this addon.
 * Now I have to copy the table from google sheet into html and call datatables 
   and its other codes. It works but I hate to login to update table. Wroking on
   googlesheet is much more pleasant.
 * I tried to insert googlesheet using this addon’s code [gdoc] and wrote javascript
   codes according datatables examples to change the table’s properties but it still
   kept unchanged. There was something wrong but I cannot figure it out.

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

The topic ‘Change column width’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

## Tags

 * [column width](https://wordpress.org/support/topic-tag/column-width/)

 * 6 replies
 * 4 participants
 * Last reply from: [vihali](https://wordpress.org/support/users/vihali/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/change-column-width-6/#post-10647920)
 * Status: resolved