[Resolved] Best way to CSS Custom SVG next to Menu

Home Forums Support [Resolved] Best way to CSS Custom SVG next to Menu

Home Forums Support Best way to CSS Custom SVG next to Menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1412038
    Kar Yung

    Goal: To try to mimic as closely as possible the top navigation bar of a site hosted on an e-commerce platform https://facetofacegames.com. Just the BUY / SELL part.

    The content site is going to be hosted on WP. Using the svg files I found and just the default WP Nav Label, I am halfway there.

    I’m just stumped on how to not make the icon stack on top of the text as well as any additional tips to get it looking as close as possible.

    Thanks!

    #1412405
    David
    Staff
    Customer Support

    Hi there,

    i am getting a site unsecured notification on your site URL > NET::ERR_CERT_REVOKED
    Can you resolve that so i can see the site ?

    #1412973
    Kar Yung

    Seems to be a Firefox only issue but it means there’s something wrong with the server. Thanks for pointing that out.

    That’s going to take 24-48 hours to resolve, so I don’t know if I can just show you how it looks like now.

    View post on imgur.com

    #1413271
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This might help:

    #menu-buy-sell-menu li a {
        display: flex;
        align-items: center;
    }
    
    #menu-buy-sell-menu li a svg {
        width: 25px;
        margin-right: 10px;
    }

    Let me know ๐Ÿ™‚

    #1417059
    Kar Yung

    You’re a genius Tom. How’d you even arrive at those numbers? From Inspecting the other site or it’s a “guess-timate”?

    #1417740
    Tom
    Lead Developer
    Lead Developer

    I used developer tools (right-click + Inspect) to add CSS to the page so I could live preview the values.

    Glad I could help! ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.