Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Drupal: Module interfering with styling

  • 24-07-2009 05:00PM
    #1
    Registered Users, Registered Users 2 Posts: 1,521 ✭✭✭


    Hi all,

    I am running the nice menus module on a drupal 6 site, I use it in place of the primary links with drop down functionality. I installed Special Menu Items because nothing I tried would make a link blank.

    The Special Menu Items module has worked to a degree, where whenever I want to have a blank menu item I can just put nolink and it will become non - linking. However it requires some restyling with class nolink. So I created the nolink class in my themes style.css and was able to change the color of font etcera.

    However and this is the important part, for some reason a piece of code is making the link a certain height and is not in keeping with the rest of the menu structure, it is too small and there is a little gap. Nothing I've tried (used padding + margins with the nolink class) has worked.

    To show you what its like I've adjusted the padding of the menu to 5em bottom, now there is a large amount of padding for all the links but the Products link STILL is fixed at that height. I've scoured but I cannot find what code is doing this so that I can reset it to make it inline with the other links

    Any help is much much appreciated!

    The website is:
    http://nettraffic.ie

    username: admin
    password: hellosir


Comments

  • Registered Users, Registered Users 2 Posts: 7,100 ✭✭✭Talisman


    The line-height property is inherited from the body.
    body.aegir {
    color:#444444;
    font-family:"Helvetica Neue",Arial,sans-serif;
    font-size:13px;
    font-size-adjust:none;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    [B][COLOR="Red"]line-height:20px;[/COLOR][/B]
    }
    

    You can over ride it by setting the line-height property for the menu list item.
    ul.nice-menu li {
    border-style:none solid solid;
    [B][COLOR="Lime"]line-height:1em; /* new property */[/COLOR][/B]
    }
    


Advertisement