I am trying to align some text up with various font awesome icons so that they are vertically-aligned (i.e. the text should be at the vertical middle of the icon).

This is the code I have currently:

{\LARGE \faInbox} \href{some email}{some email} \quad
{\LARGE \faPhone} (555) 555-5555 \quad
{\LARGE \faLinkedinSquare} \href{https://www.linkedin.com/in/somelinkedin/}{somelinkedin} \quad
{\LARGE \faGithub} \href{https://github.com/username}{username} \quad
{\LARGE \faStackOverflow} \href{https://stackoverflow.com/users/12584129/someuser}{someuser} \quad

When rendered, the output looks like this:

enter image description here

I wish to center the text vertically in line with the Font Awesome icons.


LIke this?





\noindent\raisebox{-0.3\height}{\LARGE \faInbox} \href{some email}{some email} \quad
\raisebox{-0.3\height}{\LARGE \faPhone} (555) 555-5555 \quad
\raisebox{-0.3\height}{\LARGE \faLinkedinSquare} \href{https://www.linkedin.com/in/somelinkedin/}{somelinkedin} \quad
\raisebox{-0.3\height}{\LARGE \faGithub} \href{https://github.com/username}{username} \\
\raisebox{-0.3\height}{\LARGE \faStackOverflow} \href{https://stackoverflow.com/users/12584129/someuser}{someuser} \quad


enter image description here

| improve this answer | |
  • Just what I was looking for. Thank you so much! – MWJones96 Dec 23 '19 at 15:09
  • You're welcome. Always glad to help! – Bernard Dec 23 '19 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.