Knowledge Base support case for Likno Web Modal Windows,  abstracted and stripped of all user’s private info.


Initial Email From:
Glenn
Initial Email Subject: Windows resize to image size and centering.
Support Case Month: February 2013

Hello,

Is there a way to get the modal window to resize to the size of an image either automatically or by coding. I have many images on my site all of different sizes and would like the window the same size (with a small margin)

Also, is there a way to center the images in the window?

Thank you

Glenn

Reply From: Likno Customer Support

Dear Glenn,

Please try the following:

<img style="cursor: pointer;" onclick="Img({bodySource:'<img src=&quot;/Images/Bass/Squier_Jazz_Bass_V.jpg&quot;/>',containerCss:{'width':'1080px','height':'360px'},isMultiSheet:false});" width="300" height="90" border="0" alt="Squier 5-string Jazz Bass" src="../Images/Bass/Squier_Jazz_Bass_V.jpg">

Note however that you need to remove the <a> tag around this image! I see that you did not remove it in your page so it still opens the larger window once the quoting issue is fixed.

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

Reply From: Glenn

Thanks Kostas. Up and running.

Just have to work out how to make the site wide change now!

As a future suggestion, I don’t know if it’s possible but it would be great if this could be an option in the Likno software. I’m sure a lot of users would like this feature. Particularly if the size was auto relative to the content of the window.

Anyway thanks for your help.

Cheers,
Glenn

Tags: , , ,