Title: Automatic Image Width
Last modified: August 31, 2016

---

# Automatic Image Width

 *  Resolved [wpking99](https://wordpress.org/support/users/wpking99/)
 * (@wpking99)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/)
 * Hi, thanks for this nice plugin. Some parts still need improvement but I really
   appreciate your work.
 * Currently I am having a problem with embedding images from external urls into
   my table by using “<img src=”…”></img>. No matter what I do, the plugin seems
   to set the width automatically to widht:100% and some random value as max-width
   of the image. Say I try to embed an 160x160px image, for some reason some of 
   the images will have max-width 160px, others 134px, and so on. It is also not
   possible to overwrite these settings with the style attribute inside the <img
   > tags.
 * Any idea what the reason may be?
 * [https://wordpress.org/plugins/data-tables-generator-by-supsystic/](https://wordpress.org/plugins/data-tables-generator-by-supsystic/)

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

 *  Thread Starter [wpking99](https://wordpress.org/support/users/wpking99/)
 * (@wpking99)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7117967)
 * If this information helps you: this happens only when you first visit the page
   with the table. When hitting Refresh 1 time, all images will have proper max-
   width (but still set automatically)
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118116)
 * Hello!
    Please provide me link to the page with table and detailed description
   about dimensions, which you have specified for images. I will check what is wrong.
 *  Thread Starter [wpking99](https://wordpress.org/support/users/wpking99/)
 * (@wpking99)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118129)
 * Example Page would be [http://www.lautsprecher-tests.de/lautsprecher-vergleich/](http://www.lautsprecher-tests.de/lautsprecher-vergleich/).
   All Images have set a <img style=”max-width:160px”> and no width. Still all of
   the images get a random max-width at the first pageload and a width of 100%. 
   If I try to overwrite the width, it doesn t work either.
 * It only seems to happen at first load within current firefox version 44.0.2. 
   As for my current test, internet explorer 11 doesn t seem to have this problem.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118160)
 * Hello!
    I tried to check you tables on different browsers but I cannot reproduce
   the issue. I can see only thе problem with this image on Firefox at first load–
   [http://prntscr.com/aaqi51](http://prntscr.com/aaqi51) – Is this the problem 
   which you are talking about? All other images are displayed correctly. Perhaps
   you can make screenshots, and provide more detailed description. Then I will 
   be happy to help you.
 *  Thread Starter [wpking99](https://wordpress.org/support/users/wpking99/)
 * (@wpking99)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118161)
 * That’s exactly the issue I was talking about and the image where it is most obvious,
   but the other images are affected aswell. If you take a look into the browser’s
   code inspector, you will see that this image has a max-width: 134px and width:
   100%, although I only set the max-width to be 160px.
 * `<a ...><div style="margin-top:5px"><img style="max-width:160px" src="..." ></
   div></a>`
 * All other images seem to be displayed correctly, but for real they also have 
   those random max-widths and 100% width and not 160px as they should have. So 
   these values are somehow generated through the plugin. Only after Page reload
   it is back to correct widths.
 *  Thread Starter [wpking99](https://wordpress.org/support/users/wpking99/)
 * (@wpking99)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118164)
 * I tried to find the code inside the plugin files which sets the widths for inserted
   images but failed, maybe you can help me out there.
 * In the meantime at least I could find a workaround to resolve this firefox-issue
   for the moment. I had to create a new CSS rule to overrule the wrong widths from
   the plugin:
 *     ```
       #supsystic-table-5 img {
       	width: auto !important;
       	max-width:160px !important;
       }
       ```
   
 * I don’t like this solution but it helps. But please take a look into the problem
   or give me a hint where I could find the problem inside the plugin files.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118167)
 * Hello!
    I gave the issue to our developer. He will try to clarify and fix the
   problem on next week. I will inform you about the progress.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118214)
 * Hello!
    We tried to reproduce this issue on our test servers – and have no luck
   with this. Please contact us through our [internal support.](https://supsystic.com/contact-us/)
   We will check what is wrong and will help you to solve the problem.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118222)
 * Hi!
    We have released new version of plugin with fixes for you. Please update
   plugin and check it.

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

The topic ‘Automatic Image Width’ is closed to new replies.

 * ![](https://ps.w.org/data-tables-generator-by-supsystic/assets/icon-256x256.png?
   rev=1158691)
 * [Data Tables Generator by Supsystic](https://wordpress.org/plugins/data-tables-generator-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/data-tables-generator-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/reviews/)

## Tags

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

 * 9 replies
 * 2 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/automatic-image-width/#post-7118222)
 * Status: resolved