Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Vertical Text Alignment

More
6 years 7 months ago #55949 by Chrysant

Is it possible to give the yellow block the same height as the blue one - and have nevertheless the smaller text centered vertically?
(In the example above the text have a margin of 15% on all sides.)
When I´m using "default vertical alignment" the yellow block has the desired height, but the text is no more centered vertical.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #55954 by ced1870
Replied by ced1870 on topic Vertical Text Alignment
Hi
by default the columns have the same height. You have used the vertical alignment, which makes it at the center
remove the center alignment of the column and edit the text block >> styles >> custom css, add this code
Code:
margin-top:50%; transform: translate(0,-50%);
this will center the text vertically in the yellow area
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #55965 by Chrysant
Replied by Chrysant on topic Vertical Text Alignment
Hi,
I don't think that's the solution. First image are my settings - aren´t this right? And on the site text is still not centered, even worse when blocks breaking at lower than 640 px (Tablet/Portrait) - second image. You can visit page: www.widmann-haustechnik.de/2020/index.php/test

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #55966 by ced1870
Replied by ced1870 on topic Vertical Text Alignment
right, the method was not correct
remove the code
edit the column >> styles >> custom css >>
Code:
display: flex; flex-direction: column; justify-content: center;
it will work on frontend, not in edition

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #55967 by Chrysant
Replied by Chrysant on topic Vertical Text Alignment
Yes it does - I´m exited - fantastic support!

Mark it as solved

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #55968 by ced1870
Replied by ced1870 on topic Vertical Text Alignment
great :)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1176 guests and one member online