Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21241

    Hello I just inserted a top level image using mega menu.

    I just referenced the img in the Navigation label as shown here http://i.imgur.com/zfGHL.png

    This is the code used: < img src=” http://mywebsite.com/wp-content/uploads/some_icon.png” alt=” Some Text” /><span >Some Text</span>

    As you can see I kept the text label.

    Now I need to know how to center the image on top of the text

    Both are currently aligned right.

    I tried adding a custom class to the image, didn’t work:

    .centermenuimg{

    text-align: center;

    margin-left:auto;

    margin-right:auto;

    }

    Please help

    #111111

    Hi jacobom,

    Without seeing the actual implementation live I can’t really say what would center it. If you are trying to do the margin left/right auto trick the width of the item must be defined.

    Regards,

    Devin

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to center image in mega menu’ is closed to new replies.