CSS code snipped to put some padding between fontawesome icons and text

Home Forums Pro Support CSS code snipped to put some padding between fontawesome icons and text

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #68174

    Hey Peter,

    I’m not that great at CSS, and can’t figure out how to put like 5 pixels of space between the font awesome icon and the text in the menu item.

    Would you give me a snippet that would work?

    Thanks!

    #68182
    Peter FeatherstonePeter Featherstone
    Participant

    Hi Paul,

    The forum already has an answer almost identical to this below:

    https://responsive.menu/forums/topic/adding-a-small-margin-to-font-icons-near-items-text-in-rtl-websites/

    Instead of using the generic margin, you can instead simply use margin-right instead.

    Hope that helps

    Peter

    #68181

    Yeah, I found that snippet and it doesn’t work.

    I’m not using glphs so I don’t know if that’s the issue or what.

    #68180
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Paul,

    The snippet in that post covers both glyphicons and fontawesome icons. Did you make sure to copy the whole snippet?

    What is your site url so I can take a look?

    Peter

    #68179
    Peter FeatherstonePeter Featherstone
    Participant

    Hi Paul,

    I’ve just checked your site and you seem to be using FontAwesome 5 which is different from what my plugin uses.

    In this case, you will need to do something like the below:

    #responsive-menu-pro-container #responsive-menu-pro li.responsive-menu-pro-item a svg {
       margin-right: 15px !important;
    }

    Please let me know if that works for you.

    Peter

    #68178

    NICE! Perfect! That did it!

    Thanks so much!

    #68177
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Paul,

    You are more than welcome, I’m glad that worked for you!

    By the way, the next release of my plugin will include an upgrade to Font Awesome 5 so you are already ahead of the game with that CSS snippet 😀

    Peter

    #68176

    Excellent! thanks again!

    #68175
    Peter FeatherstonePeter Featherstone
    Participant

    🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘CSS code snipped to put some padding between fontawesome icons and text’ is closed to new replies.