Home Forums Weaver Xtreme Theme Adding Image to primary menu

Topic Resolution: Answered
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #76561
    Answered
    Caetlyn
    Participant

    I’m trying to add a logo image into my menu (i.e. as part of the main menu). However, when I look at it on the frontend, the menu items are aligned at the top of the image instead of the center.

    How do I achieve this with css?

    #76562
    Weaver
    Keymaster

    Don’t really have enough info here to answer reasonably.

    But to start, look at the full screen menu of this site – Weaver Xttreme. It is part of the main menu. So you mean something like that? Please be more specific, and provide a link to the site in question if possible.

     

    #76564
    scrambler
    Moderator

    Site link please

    #76565
    Caetlyn
    Participant
    #76566
    Best Answer
    scrambler
    Moderator

    This reply has been accepted as the best answer.

    The rule below can make all items the same height as the image (56px), center them vertically, as well as reducing/removing the existing vertical padding

    .is-desktop .wvrx-menu a {
    line-height: 56px;
    vertical-align: middle;
    padding-top: 0;
    padding-bottom: 0;
    }

    Adjusting the line height to the image height, and eventually not reducing the top/bottom padding all the way to zero if desired

     

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