Page 2 of 5

Centering a control?

Posted: Mon Jan 23, 2012 9:25 pm
by Mike Chilson

no bounces.. will resend to your address.


Centering a control?

Posted: Mon Jan 23, 2012 9:48 pm
by maxkatz

Got it and also got the emails to support.. I guess there was delay. So, you want to center the logo at the top, correct?


Centering a control?

Posted: Mon Jan 23, 2012 9:51 pm
by Mike Chilson

Good deal.. Yes, that is correct. But it has to be centered on all devices not just the simulator. When it's centered there using the grid method it's not centered on my phone or tablet.


Centering a control?

Posted: Mon Jan 23, 2012 11:01 pm
by maxkatz

Run this on screen load:

code
$('.mobileimage0_div').css('margin', 'auto');
$('.mobileimage0_div').css('align', 'center');
/code

.mobileimage0_div - is the parent div for the image. More info: http://stackoverflow.com/questions/43...


Centering a control?

Posted: Mon Jan 23, 2012 11:13 pm
by Mike Chilson

Worked perfectly Max. Many thanks!

Mike


Centering a control?

Posted: Thu Feb 23, 2012 5:30 pm
by anilsojitra

Hi Max,

I tried to use your screen load method to centre and image but it doesn't seem to be working. Please can you talk a look at my project (http://tiggzi.com/project/28126/) and let me know if I've done something wrong:

I'm using this code:

$('.mobileimage28_div').css('margin', 'auto');
$('.mobileimage28_div').css('align', 'center');

where mobileimage28 is the name of the image

Thanks for your help


Centering a control?

Posted: Thu Feb 23, 2012 10:55 pm
by maxkatz

I'm not able to access your app with just the URL, please share it with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a


Centering a control?

Posted: Fri Feb 24, 2012 11:27 am
by anilsojitra

Sorry. I've made it public so hopefully you can access it now.


Centering a control?

Posted: Wed Feb 29, 2012 9:36 am
by maxkatz

I think the problem is that there is no element with id mobileimage28_div in the page. I think it has to be mobileimage29_div. Check to make sure you are processing the right image.


Centering a control?

Posted: Sat Mar 10, 2012 5:05 pm
by sam.wiltshire

Hi there.

I've tried to apply this on some images I have in individual cells of a table. However, I can't seem to get it to work. (Unfortunately I don't know JavaScript so I may not have applied it correctly)

My project is http://tiggzi.com/project/28392/

Any chance of some help?

Thanks (great tool by the way!)

Sam