Hey guys I am trying to get the modification to accept a % instead of a fixed px width - it's working awesomely in Chrome and IE however in Firefox it doesn't seem to resize the inline images correctly and overflows.
I am wondering if the issue is with display:block
I've tried using display:block in this way but still no success...
PHP Code:
$postmessage = str_replace('<img', '<img style="display:block;max-width: ' . $this->registry->optionsgquick_autoresize_maxwidth . '%; cursor: pointer;" onclick="window.open(this.src)" ', $postmessage);
Any ideas?