Jahmarley
Posts: 0
Joined: Mon Apr 16, 2012 8:21 pm

Code for centering image no longer works?

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Code for centering image no longer works?

Hello!
This should work

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

Ted L
Posts: 0
Joined: Tue Feb 19, 2013 8:03 am

Code for centering image no longer works?

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')

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Code for centering image no longer works?

testing...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Code for centering image no longer works?

Try this

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Code for centering image no longer works?

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

Ted L
Posts: 0
Joined: Tue Feb 19, 2013 8:03 am

Code for centering image no longer works?

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

Thanks Marina!

Jahmarley
Posts: 0
Joined: Mon Apr 16, 2012 8:21 pm

Code for centering image no longer works?

Hi Marina,

The code u provided still does not work for me.

Thank you

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Code for centering image no longer works?

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?

Jahmarley
Posts: 0
Joined: Mon Apr 16, 2012 8:21 pm

Code for centering image no longer works?

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

Return to “Issues”