Title: table width/height issue and solution
Last modified: August 22, 2016

---

# table width/height issue and solution

 *  [atomizer](https://wordpress.org/support/users/atomizer/)
 * (@atomizer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-widthheight-issue-and-solution/)
 * i hope the author will consider wrapping the table in a div tag because currently
   there is no easy way (AFAIK) to control the size of the table
 * this results in a very ugly appearance for a wide table because it runs off the
   edge of the WP template
 * my solution was to wrap the short-code in a div, give it a class (csv2table),
   then style it like so…
 *     ```
       .csv2table {
           width: 100%;
           overflow: auto;
           height: 1000px;
       }
       ```
   
 * this will limit the width to the page content and add scroll bars as needed
 * there may be a better solution than hard-coding the height, but i haven’t really
   poked around yet
 * [https://wordpress.org/plugins/csv-to-sorttable/](https://wordpress.org/plugins/csv-to-sorttable/)

The topic ‘table width/height issue and solution’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/csv-to-sorttable_d4e1eb.svg)
 * [CSV to SortTable](https://wordpress.org/plugins/csv-to-sorttable/)
 * [Support Threads](https://wordpress.org/support/plugin/csv-to-sorttable/)
 * [Active Topics](https://wordpress.org/support/plugin/csv-to-sorttable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/csv-to-sorttable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/csv-to-sorttable/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [atomizer](https://wordpress.org/support/users/atomizer/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/table-widthheight-issue-and-solution/)
 * Status: not resolved