Title: Having trouble setting table width
Last modified: August 21, 2016

---

# Having trouble setting table width

 *  Resolved [hilmil](https://wordpress.org/support/users/hilmil/)
 * (@hilmil)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-setting-table-width/)
 * Hi Tobias,
 * I’m using a single cell table for my static wordpress home page, the reason being
   that it is a single image that uses image map hot spots. (I just learned that
   this is a great way to make image mapped images work with a mobile theme! )
 * The image; however is a bit too wide and spills into the sidebar. I thought if
   I added the recommended CSS to the Tablepress Options that lets you resize the
   column width it would do the trick, but nothing happens. Is there a CSS code 
   that would keep the image within my theme’s settings? I’m trying to avoid manually
   resizing the image as i don’t want to mess up the image map.
 * Here’s my homepage [http://ecigarettenews.net](http://ecigarettenews.net)
 * Thanks!
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-setting-table-width/#post-4473385)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Unfortunately, you are running into a fundamental problem with tables: A table
   will always “obey” the width that the content in it (in your case that image)
   requires. Setting the width of the columns via CSS does not help here, as that
   can not reduce the width beyond that required minimum of the content.
 * Now, regarding your site, I’m a bit confused. The only table I see there is in
   the sidebar. The image map in the content of the page is not a table though…
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Having trouble setting table width’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-setting-table-width/#post-4473385)
 * Status: resolved