Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #463383

    Hi.

    I know how to place an icon next to the menu item, by copying the icon short code next to the menu text in the menu options. But i need to know how I do place the icon directly on top of the menu text? I tried fiddling with the CSS but Im not sure which item to target.

    see example

    • This topic was modified 9 years, 5 months ago by zedduo.
    #463859

    Hi!

    Can you apply the icons first and then post a link to your site so we can provide you with the precise CSS code?

    Cheers!
    Josue

    #463874

    Thanks Josue!

    The link is below.

    • This reply was modified 9 years, 5 months ago by zedduo.
    #463881

    Hey!

    Try with this:

    .avia-menu-text .av_font_icon {
        position: absolute;
        top: -25px;
    }
    
    .html_header_top.html_header_sticky.html_large #header_main .container, .html_header_top.html_header_sticky.html_large.html_main_nav_header .main_menu ul:first-child > li a {
        line-height: 170px;
    }

    Regards,
    Josue

    #463926

    Awesome thanks!

    Can it be centred? Do I need to add text-align to .av_font_icon?

    #463950

    Change the icon code to:

    .avia-menu-text .av_font_icon { position: absolute; top: -25px; left: 0; right: 0; margin: 0 auto;}
    

    Regards,
    Josue

    • This reply was modified 9 years, 5 months ago by Josue.
    #463983

    Fantastic! Thank you so much!!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to place an icon on top of a menu item’ is closed to new replies.