Mike Chilson
Posts: 0
Joined: Mon Jan 23, 2012 2:24 pm

Centering a control?

no bounces.. will resend to your address.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Centering a control?

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?

Mike Chilson
Posts: 0
Joined: Mon Jan 23, 2012 2:24 pm

Centering a control?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Centering a control?

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...

Mike Chilson
Posts: 0
Joined: Mon Jan 23, 2012 2:24 pm

Centering a control?

Worked perfectly Max. Many thanks!

Mike

anilsojitra
Posts: 0
Joined: Fri Jan 20, 2012 10:51 am

Centering a control?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Centering a control?

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

anilsojitra
Posts: 0
Joined: Fri Jan 20, 2012 10:51 am

Centering a control?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Centering a control?

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.

sam.wiltshire
Posts: 0
Joined: Thu Mar 01, 2012 11:33 pm

Centering a control?

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

Return to “Issues”