-
AuthorPosts
-
December 9, 2021 at 7:26 pm #1332193
On my site – http://alexandere68.sg-host.com/ right below the slider area, I have 3 columns with 3 locations in text boxes, I have added some custom css with flex box to achieve this. Everything looks great but for some reason something in the enfold theme is causing it not to center vertically. (if I test this outside of the enfold theme, it is vertically ceneterd)
Please assist.
December 9, 2021 at 9:13 pm #1332199try:
.trioDetails { display: flex; flex-flow: column nowrap; justify-content: space-around; margin: 10px 0; padding: 0; } .trioDetails * { margin: 0; }
December 10, 2021 at 3:20 am #1332208Hi navindesigns,
Please try @Guenni007’s solution, it should center those texts vertically.
@Guenni007 Thanks for helping out :)Best regards,
NikkoDecember 10, 2021 at 3:23 am #1332209Ok that works but now the only thing is that the icon on the left also needs to be vertically aligned
December 10, 2021 at 4:19 am #1332212add to the existing flex container:
.homeTrioLocation { align-items: center; } .trioIcon { padding: 30px 15px; }
play with the 15px value to get the part bigger. f.e. 25px
December 10, 2021 at 4:21 am #1332213excellent thank u so much as always
December 10, 2021 at 4:30 am #1332214where is the left icon gone?
December 10, 2021 at 4:35 am #1332215weird
every time I edit that block it goes awayDecember 11, 2021 at 7:26 pm #1332427Hi,
I see that your trioIcon div is missing your icon html:
<i class="bi bi-pin-map-fill" style="font-size: 1.25rem; color: white;"></i>
Please use the code block element instead of the text block element to display html code.Best regards,
MikeDecember 12, 2021 at 8:04 pm #1332490I switched it to code block but now it is taller because
http://alexandere68.sg-host.com/ the “Phone” and the “number” are now on separate lines
how do I keep them on the same line?
Thanks
December 12, 2021 at 9:26 pm #1332494December 12, 2021 at 9:31 pm #1332495That removed the gap but I still want to keep the “Phone: 718-263-5999” on one line. Thanks as always
December 12, 2021 at 10:41 pm #1332498Hi,
Ok you will need to make .trioDetails display:block
so your new css would be:.trioDetails { display: block; margin: 0 0; padding: 0; }
Best regards,
MikeDecember 13, 2021 at 3:20 am #1332515thank you
December 13, 2021 at 9:07 am #1332533Hi navindesigns,
We’re glad that Mike could help you :)
Just let us know if you still need further assistance.Best regards,
Nikko -
AuthorPosts
- The topic ‘Vertically center text’ is closed to new replies.