Kunena Menu
Vertical Text Alignment
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.
Vertical Text Alignment was created 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.
6 years 7 months ago #55954
by ced1870
Joomlack Webmaster and Developer
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
this will center the text vertically in the yellow area
CEd
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%);
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
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
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.
6 years 7 months ago #55966
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Vertical Text Alignment
right, the method was not correct
remove the code
edit the column >> styles >> custom css >>
it will work on frontend, not in edition
remove the code
edit the column >> styles >> custom css >>
Code:
display: flex;
flex-direction: column;
justify-content: center;
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
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
Mark it as solved
Please Log in or Create an account to join the conversation.
Time to create page: 0.231 seconds





