-
AuthorPosts
-
March 14, 2014 at 12:39 pm #195782
Hello
I am having difficulties using the additional class in Parameters (JA Extended) of a text separator in mega menu. In mega.css I type this code
.red { color: #F00 !important;}
then in the additional class I type “red” (without quotes) but the text remains GREY. Inspecting the elements with fire bug I get this
<div class="group">
<div class="group-title">
<a id="menu513" class="mega red" title="πανες υποσεντονα" href="#">
<span class="menu-title">πανες υποσεντονα</span>
</a>
</div>My problem is that the additional class I made refers to <a id=”menu513″ class=”mega red” title=”πανες υποσεντονα” href=”#”> and not to the SPAN class and the color does not change. If I change the class of the SPAN (using firebug) the color changes as it should. Any ideas on how to fix that?
my website
thank you in advance
swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
March 14, 2014 at 1:07 pm #526741Hi
Sorry, I can’t understand your site – all looks Greek to me 😉
But….
a quick check of your css reveals a problem with your added code. You’ve made this code
.red { color: #F00; !important;}
when it should be
.red { color: #F00 !important;}
i.e. no < ; > between color and < !important; >and also if you add .red to the css then when you add the class to the menu it should be ” red” – note the leading space first.
Maybe that helps!
March 14, 2014 at 1:17 pm #526742thank you very much for the reply. I made the changes you suggested but still no luck. The problem is that the “additional class” in Parameters (JA Extended) refers to the previous div/span in the hierarchy and not to the final element as it should (or so I believe).
Any other ideas?
swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
March 17, 2014 at 10:07 am #526941@tzic, when you add a class via “additional class” option, it should has css rule as follows:
.red { color: #F00 !important;}
It works fine with almost menu item except for active menu and menu group title. In this case, you wish to add class color for menu group title, thus it does not work. You should add this CSS rule instead:
.red, .red > .menu-title { color: #F00 !important;}
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by Manos 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum