Page 1 of 1

center a different image

Posted: Tue Oct 02, 2012 1:09 pm
by JHal

I'm using firefox, how do i find out the name of an image so I can center it? I'm using the:

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

lines, but i dont know the name of the .mobileimage# of the image on this page.. any help? i tried changing it to the common name with no success


center a different image

Posted: Tue Oct 02, 2012 1:20 pm
by Maryna Brodina

Select the image component, go to mobileimage properties on the right hand side (take a look at the screenshot), there you'll find Mobile Image name:

Image


center a different image

Posted: Tue Oct 02, 2012 1:39 pm
by JHal

that doesnt work, it puts the image back to left aligned; the image on the first screen however when i leave it as mobileimage1 it will center it, but on page2 the image name of mobileimage6 wont center, even when i update the code in my orig post to the correct name... again, on page 1 the name is: mobileimage6 but when that is in the code it wont center, if i change it to mobileimage1 it will center... BUT - page two i cant do that - nothing works


center a different image

Posted: Tue Oct 02, 2012 2:40 pm
by Maryna Brodina

Please try the next code:

$t('mobileimage1').parent().css('margin', 'auto');


center a different image

Posted: Tue Oct 02, 2012 2:51 pm
by JHal

that works! fantastic!! maybe should remove that other code haha