WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] img not resized by with and height tag (7 posts)

  1. Umbergail
    Member
    Posted 1 year ago #

    I did not know when this happened but actually the width and height tags of images are ignored within the tables. I have not changed the tables for a recent time but have made some updates to the theme (suffusion) and other plugins. I recognized the problem today and I am sure it did not occure about ten days ago. Any idea how to fix this?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    this is very likely caused by one of those theme updates, which probably contained new CSS code that influences images.
    It should not be a problem to change this back for images in tables. To be able to give you the exact code, I'd need to take a look at your table though.
    Can you therefore please post a link to the page with the table?

    Thanks!
    Tobias

  3. Umbergail
    Member
    Posted 1 year ago #

  4. Umbergail
    Member
    Posted 1 year ago #

    This is the code entered within the table
    <img class="alignleft size-full wp-image-192" title="simply_rat" src="http://b3l.bellator-aleae.de/cms/wp-content/uploads/2011/05/simply_rat.png" width="30" height="30" />

  5. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for the link.

    This is indeed related to your theme. The theme sets the width of all images to "auto" which means that the images will get the size that they have in the file (in your case that's usually 150px), and not the size that you set in the HTML code.
    To change this, you'll have to set the width in the CSS code as well.
    Please try adding

    .wp-table-reloaded-id-1 img,
    .wp-table-reloaded-id-16 img,
    .wp-table-reloaded-id-26 img,
    .wp-table-reloaded-id-27 img {
      width: 30px;
      max-width: auto;
    }

    to the "Custom CSS" (or "Zusatz-CSS") textarea on the "Plugin Options" screen of WP-Table Reloaded.
    This code has to be extended then. Each table that shall have the small images has to be added to the list, which currently holds the tables 1, 16, 26, and 27, by adding a corresponding line.

    Regards,
    Tobias

  6. Umbergail
    Member
    Posted 1 year ago #

    Thank you, that works.

    Danke für die rasche Hilfe.

  7. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    sure, no problem! :-) Gern geschehen! :-)

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic