Image. How to align it vertically in the middle of the screen ?


Joseph Caristena

Hi,
I have an image W 175 and H 330 on the View called
Credits.
I have to always align in the middle of the screen
this image.
So when screen changes the image must be always in the middle,
perfectly vertically aligned.

This is the code to keep it fixed (with no stretching)
and it is working well.

Just click on the View called Credits
click once on the View and then go to Code.
At the bottom of the View click on the Show tab
and copy the following script:

Now the problem is to align it vertically in the middle
of the screen.

So when screen changes the image must be always in the middle,
perfectly vertically aligned.

Thanks
Joseph Caristena


DecSoft

Hello Joseph,

One possible way to do what you wanted is to using the below CSS code, for example, in the "Inline CSS" app's option:

Note that doing that you no need to change the image width nor height.



Joseph Caristena

Hi,
Works well:)

Thanks
Joseph Caristena

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.