Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • iainmac Friend
    #157911

    I want to replace the coloured borders in the mega menu with a multi coloured image but when I replace the following code:


    .ja-megamenu {padding: 0; border-bottom: 5px solid #000; }

    with

    .ja-megamenu {background: url(../images/bar.png) no-repeat; }

    The image does not appear even when I document the full url. What am I doing wrong?
    Thanks

    Phill Moderator
    #368776

    Make sure you are in development mode and css compression is set to no. Then clear your caches (browser and jat3) and see if that helps locate the problem. If no then please post a link and we will see if we can advise.

    iainmac Friend
    #368778

    Still doesn’t seem to be having an impact. I will pm site details and would be grateful for your feedback.
    Thanks

    iainmac Friend
    #368799

    The site is at maximise.com/clr3

    Phill Moderator
    #368805

    The path should be
    /clr3/images/bar.png

    iainmac Friend
    #368809

    Thanks, that worked!
    The image is appearing at the top of the menu instead of at the bottom where the border was. Any ideas how I get the bar to show underneath the menu?

    Thanks

    iainmac Friend
    #368818

    Almost got it with this code:

    .ja-megamenu { background: url(/clr3/images/bar.gif) no-repeat 2px bottom;}

    but there seems to be an orange repeat under the rss, twitter icons. Any ideas on how to resolve that?

    Phill Moderator
    #368822

    That is a separate menu also using the same border. You would have to add a separate style to the menu to remove that. Use Firebug for firefox and you should be able o work it out.

    iainmac Friend
    #368836

    OK, from what you are saying I understand that there is a separate area hosting the rss, twitter etc icons, which is calling for the same menu bar. I am not familiar with firebug but I assume that what you are suggesting is that I need to somehow differentiate that menu area from the code that holds the menu bar, so any further pointers would be most helpful. Thanks

    Ninja Lead Moderator
    #368909

    Hi iainmac,

    Phill meant you should add an new class to ja-megamenu, for example

    <div id="ja-megamenu" class="ja-megamenu colorline clearfix">
    and then change the code

    .ja-megamenu { background: url(/clr3/images/bar.gif) no-repeat 2px bottom;}
    to

    .colorline{ background: url(/clr3/images/bar.gif) no-repeat 2px bottom;}
    It should be able to remove the duplicated line.

    iainmac Friend
    #368925

    That did remove the duplicated line but keeps the one underneath the rss & twitter icons. Can you suggest how I amend it to keep the line under the menu instead?

    Thanks

    Ninja Lead Moderator
    #368926

    Hi iainmac,

    you have put the “colorline” class in a wrong place, there are 2 “ja-megamenu” elements, place the class into the second one (the one inside ja-mainnav), it should be ok.

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

This topic contains 12 replies, has 3 voices, and was last updated by  Ninja Lead 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum