Menu Issue

Discussion in 'Traffica WordPress Theme' started by spoonboy90, Feb 4, 2014.

Thread Status:
Not open for further replies.
  1. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    I have an open thread that was originally answerd but wasn't sure if I just asked on it it would get seen so i've started a new one!

    [​IMG]

    I was given this code to remove the gaps between the menu items (above image):

    Code:
     #menu .ddsmoothmenu li {
    display: table-cell;
    }
    which worked ok in all browsers until I added submenus, now Firefox & Opera are having issues

    In Firefox it's causing the menu to show up to far to the left

    firefox.png

    and in opera to near to the top

    firefox.png

    So is there another way to remove the gaps between the menu items or is there a simple fix for the browser issues please


     

    Attached Files:

  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  3. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    http://currant.i1024.co.uk/

    Code:
    #menu .ddsmoothmenu li {
    display: table-cell;
    }
    if I remove the above css the menu behaves normaly but there are gaps which i need to remove!
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    For Firefox browser

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    @-moz-document url-prefix() { 
    #menu .ddsmoothmenu li ul{
    margin-left:49px;
    }
    } 
    Adjust its value as per your requirements.

    For more info, please check the link given below
    http://www.conditional-css.com/usage



    Thanks & Regards
    Gourav Shrivastava
     
  5. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    Thanks Gourav but that works ok for the first dropdown menu but now other drop down menus are added its not a robust fix.

    Is there no other way to remove the gaps rather than the 'table-cell'
     
  6. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    Unlikely but should anyone else be interested in a solution to this problem i used the following css to resolve my issue

    Code:
    #menu .ddsmoothmenu li {
        display: table-cell;
    }
     
    /* Firefox Menu Fix */
    @-moz-document url-prefix() {
    #menu .ddsmoothmenu li {
    display: inline-block;
    margin-left: -2px;
    margin-right: -2px;
    }
    }
     
Thread Status:
Not open for further replies.

Share This Page