michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

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

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Change of code for image adjustment

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

michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

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

michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

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

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Change of code for image adjustment

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

michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

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

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Change of code for image adjustment

See attached screenshot
Image

michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

Thank you Oleg,
Top class support, much appreciated
Dan

michaeldanwild
Posts: 0
Joined: Sun Aug 11, 2013 4:11 pm

Change of code for image adjustment

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Change of code for image adjustment

Hi Dan,

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

Return to “Issues”