JHal
Posts: 0
Joined: Thu Sep 20, 2012 1:14 pm

center a different image

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

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

center a different image

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

JHal
Posts: 0
Joined: Thu Sep 20, 2012 1:14 pm

center a different image

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

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

center a different image

Please try the next code:

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

JHal
Posts: 0
Joined: Thu Sep 20, 2012 1:14 pm

center a different image

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

Return to “Issues”