Page 1 of 4

Change of code for image adjustment

Posted: Mon Nov 11, 2013 3:34 pm
by michaeldanwild

Handler: Handler: Appery('mobileimage_31').width('100%').height('auto'); Appery('mobileimage_31').parent().width('100%').height('auto');
I used to use this piece of code to expand an image to fit any screen size. It no longer works. Should I be using a different string of code?
Dan


Change of code for image adjustment

Posted: Mon Nov 11, 2013 4:23 pm
by Oleg Danchenkov

Hi. Try this code:
precodeAppery('mobileimage_31').attr( "style", "width:100% !important; height: auto !important");/code/pre


Change of code for image adjustment

Posted: Mon Nov 11, 2013 4:56 pm
by michaeldanwild

Oleg,
You are a star!
Quick and with a solution that works.
Thank you
Dan


Change of code for image adjustment

Posted: Mon Nov 11, 2013 5:01 pm
by michaeldanwild

Oleg, the html needs the same treatment. Do you have a piece of code for that too?
Thanks
Dan


Change of code for image adjustment

Posted: Mon Nov 11, 2013 5:11 pm
by Oleg Danchenkov

Add attribute "style" to html tag
codestyle="width:100% !important; height: auto !important"/code
For example
precode<Image id="&#46;&#46;&#46;" style="width:100% !important; height: auto !important"/code/pre


Change of code for image adjustment

Posted: Mon Nov 11, 2013 5:28 pm
by michaeldanwild

Thank Oleg, but I'm not doing this right. Can you tell me where I'm going wrong please.
Thanks
Dan
Image


Change of code for image adjustment

Posted: Mon Nov 11, 2013 6:22 pm
by Oleg Danchenkov

See attached screenshot
Image


Change of code for image adjustment

Posted: Mon Nov 11, 2013 6:40 pm
by michaeldanwild

Thank you Oleg,
Top class support, much appreciated
Dan


Change of code for image adjustment

Posted: Mon Nov 11, 2013 8:16 pm
by michaeldanwild

Alas, it doesn't work for me, probably my fault, can you advise please?
Sorry to be a pain
Dan Image


Change of code for image adjustment

Posted: Mon Nov 11, 2013 9:05 pm
by Kateryna Grynko

Hi Dan,

Not sure we understand your problem. Could you please tell in detail what you want to achieve and what doesn't work?