Page 1 of 1

Positioning issues.

Posted: Tue Aug 27, 2013 10:23 am
by Philip Crisp

Hi there, im in the final stage of developing my app and am having difficulty with positioning two images, one on each page. I've tried using CSS to position the images at the top of the page and in the center of the page. The aim is to do this so that the image stays positioned in the center of the top of the screen even if you change the screen size. Hope you can help.


Positioning issues.

Posted: Tue Aug 27, 2013 10:57 am
by Maryna Brodina

Hello! You can try to place image inside the Grid component. Could you post CSS code you tried?


Positioning issues.

Posted: Tue Aug 27, 2013 11:57 am
by Philip Crisp

I'd tried:

margin: auto;
margin-left: 50%;
margin-right: 50%;

I've also tried using the padding element and it hasnt worked so far, I'll try the grid solution now.


Positioning issues.

Posted: Tue Aug 27, 2013 12:05 pm
by Philip Crisp

The grid approach didn't work. Anything else that you could suggest? I also should have mentioned above that I used those margin elements separately, not all together.


Positioning issues.

Posted: Tue Aug 27, 2013 12:50 pm
by Maryna Brodina

Add class for image (for example myImage), create CSS asset and define that class. For example:
code.myImage{
margin: 4px auto !important;
}/code
http://docs.appery.io/documentation/w...


Positioning issues.

Posted: Tue Aug 27, 2013 12:51 pm
by Philip Crisp

I've solved the issue!!
I delved into the css source code and changed the margin property there to auto. It seems like this base style sheet was overriding what I was trying to get my custom style sheet to do.