-
AuthorPosts
-
March 5, 2021 at 12:19 am #1285570
Hi there,
I’m hoping you can assist with some code to center two ‘Icon’ elements in a single line. They currently end up stacked when using the ‘center’ alignment styling. I refer to the Facebook and Instagram logos underneath the contact details shown here – https://prnt.sc/10d7gx3 (NOT the ones in footer).I’ve read some previous posts about using Left alignment for the Icons so they appear inline (single line, not stacked) and then adding some CSS. I added the custom ID ‘contact-social’ to a 3/5 Column which contains the icon elements but am unsure of the CSS required to center the icons.
Would appreciate your help! Many thanks.March 5, 2021 at 10:25 am #1285658Hey Suze,
Best regards,
VictoriaMarch 9, 2021 at 7:48 pm #1286882Sorry, Victoria – what HMTL should I copy?
March 12, 2021 at 2:55 pm #1287699Hi ellamac,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJuly 18, 2022 at 11:55 pm #1358713I’m still trying to work out how to center several inline icon elements. I have 5 star icons inline using the left aligned style and would like to know the code to center align these. I’ve given the full column a custom CSS class of five-star.
https://prnt.sc/dYgD-95Le436July 19, 2022 at 12:41 am #1358719Hi,
Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:.five-star { justify-content: center; display: flex; }After applying the css, please clear your browser cache and check.
Best regards,
MikeJuly 19, 2022 at 12:50 am #1358723Brilliant – thank you Mike! That’s worked a treat.
This post can now be closed and marked as solved : )July 19, 2022 at 3:03 am #1358732Hi ellamac,
I’m glad that Mike could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Icon element centered on one line’ is closed to new replies.
