-
AuthorPosts
-
tworld Friend
tworld
- Join date:
- October 2011
- Posts:
- 58
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
November 28, 2011 at 6:07 pm #171191I’ve added a special CSS rule to change the link and background color of the top-level links on my Mega Menu, like this:
ul.level0 li.mega a.haschild:focus, ul.level0 li.mega a.haschild:hover { {
color: #fff;
background-color: #006699 !important;
}But when I move my cursor over the sub-menu links, the background color of the top-level links disappears. What other CSS rule do I need to define to fix this problem? See attached image.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
November 29, 2011 at 11:09 am #427118You replace your code with
ul.level0 li.haschild-over a.over {
background: #069;
color: white;
}tworld Friendtworld
- Join date:
- October 2011
- Posts:
- 58
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
November 29, 2011 at 5:32 pm #427181This also puts the same background color for the sub-menu, though. I want to sub-menu to stay the way they are, the only thing I want to change is the top level. I tried adding the following, but it doesn’t work:
.ja-megamenu ul.level1 li.mega a.over, .ja-megamenu ul.level1 li.mega a:hover, .ja-megamenu ul.level1 li.mega a.over span.menu-title {
background: none repeat scroll 0 0 transparent;
}
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
November 30, 2011 at 9:46 am #427301You just use my code, like that
ul.level0 li.haschild-over a.over {
background: none repeat scroll 0 0 transparent;
color: black;
}
tworld Friendtworld
- Join date:
- October 2011
- Posts:
- 58
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
November 30, 2011 at 3:22 pm #427341Your code doesn’t do what I want. What I want is this:
– level0 background color to be #006699 and level0 text color to be white
– level1 links background color to be transparent and the link colors to be same as default
– also, when the cursor moves to level1 links i want level0 background color to STAY #006699 and level0 text color to STAY whiteI thought the last CSS rule I showed you would work, but it doesn’t because there is another rule that is overriding it for some reason.
So, is what I want possible with the Mega Menu? It seems it should be, but I am not sure which rules target the level1 links and background colors of those links ( <a> and <span> tags) properly.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
December 3, 2011 at 10:22 am #427705I understand what you mean. You try this way:
– You remove this code from /templates/ja_ores/local/themes/trauma-world/css/menu/mega.css
ul.level0 li.mega a:hover, ul.level0 li.mega a:active, ul.level0 li.mega a:focus, ul.level0 li.mega a.sfhover {
color: #353535;
}
– You replace this code from /templates/ja_ores/local/themes/trauma-world/css/light-theme.css
ul.level0 li.haschild-over a.over {
background: none repeat scroll 0 0 transparent;
color: white;
}
with
ul.level0 li.haschild-over a.over {
background: #069;
color: white;
}1 user says Thank You to khoand for this useful post
tworld Friendtworld
- Join date:
- October 2011
- Posts:
- 58
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
December 5, 2011 at 8:43 pm #428081Yup, that fixed the problem. Thanks!
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by tworld 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Top Level Mega Menu Links Background Color Disappears When Hovering Over Sub-Menu
Viewing 7 posts - 1 through 7 (of 7 total)