Page 1 of 3

Code for centering image no longer works?

Posted: Wed Feb 20, 2013 7:05 pm
by Jahmarley

I have been using the following code to center my logo in my app for quite a while now... I tested app and realized it is no longer working.

$t('imagename').parent().css('margin', 'auto');
$('iamgename').css('align', 'center');

************************

Is there a way to resolve this?


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 7:09 pm
by Maryna Brodina

Hello!
This should work

Tiggzi('imagename').parent().css('margin', 'auto');
Tiggzi('imagename').parent().css('align', 'center');


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 9:27 pm
by Ted L

Hi,

I have the same problem. The centering script no longer works. I even upload a backup copy from a few days ago and it's the same.

Tiggzi('mobileimage_28').parent().css('margin','auto')
Tiggzi('mobileimage_28').parent().css('align','center')


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 9:38 pm
by Maryna Brodina

testing...


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 9:45 pm
by Maryna Brodina

Try this

Tiggzi('mobileimage_2').css('margin', 'auto');
Tiggzi('mobileimage_2').css('align', 'center');


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 9:52 pm
by Maryna Brodina

Code you posted doesn't work now because of bug which will be fixed soon


Code for centering image no longer works?

Posted: Wed Feb 20, 2013 9:53 pm
by Ted L

Yes, it works again :) The Devil is in the details I guess.

Thanks Marina!


Code for centering image no longer works?

Posted: Thu Feb 21, 2013 1:28 pm
by Jahmarley

Hi Marina,

The code u provided still does not work for me.

Thank you


Code for centering image no longer works?

Posted: Thu Feb 21, 2013 3:19 pm
by Maryna Brodina

Hi, strange... it's working for me

http://project.tiggzi.com/mobile-fram...

Please check image name. Do you run this script on page Load?


Code for centering image no longer works?

Posted: Thu Feb 21, 2013 8:08 pm
by Jahmarley

Hi Marina...

I have checked the image name.

The image name is dapplogo and I entered code as follows:

Tiggzi('dapplogo').parent().css('margin', 'auto');
Tiggzi('dapplogo').parent().css('align', 'center');

*************************

I do run the script on page load.

I have also tried adding the image without renaming it and using code with the default image name and it still does not work.

See image...

Image

Image

Thanks