Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
February 12, 2016 at 3:10 pm #582243
Hi!
I would like one off the menu items to be a differnt color then the others.
Ive used this code before and it working one the font color won’t change to #ffffff
/* Netwerk Zorgpartners */ li#menu-item-26 a { background-color: #0a3456 !important; color: #ffffff !important; }
Its about the item in blue (and the text needs to white. Ive managed to fix the mouse over and te active allready. My total CSS:
/* Main Menu Color & Layout Settings */ /* Active color */ ul#avia-menu > li.current-menu-item > a { background-color: #e96f24!important; } /* Active font color */ .html_header_sidebar #header .av-main-nav li.current-menu-item > a .avia-menu-text { color: #ffffff; } /* Main menu padding */ .html_header_sidebar #header .av-main-nav > li > a { line-height: 1.3em; height: auto; padding: 15px 15px; margin: 0 auto; } .html_header_sidebar #header .av-main-nav > li { float: none; display: block; margin: 0 0; } .html_header_sidebar #header .av-main-nav { padding: 0 0; } /* Logo styling */ .html_header_sidebar .logo { position: relative; clear:both; padding: 40px 10px; border-bottom-style: solid; border-bottom-width:1px; height:auto; max-height: none; width:100%; } /* Netwerk Zorgpartners */ li#menu-item-26 a { background-color: #0a3456 !important; color: #ffffff !important; } /* Submenu styling */ .header_color .sub-menu > li.current-menu-item > a, .header_color .sub-menu > li.current_page_item > a { background-color: #e96f24 !important; color:#fff !important; }
- This topic was modified 8 years, 10 months ago by c3computers.
February 12, 2016 at 5:23 pm #582345Anyone? :)
February 12, 2016 at 5:42 pm #582358Hi!
Please add following code to Quick CSS as well
li#menu-item-26 .avia-menu-text { color: white!important; }
Best regards,
YigitFebruary 12, 2016 at 5:46 pm #582367Hi!
Perfect! TNX!
Why didnt it work like this:?
/* Netwerk Zorgpartners */ li#menu-item-26 a { background-color: #0a3456 !important; color: #ffffff; }
February 12, 2016 at 5:50 pm #582375Hi!
Because there is “avia-menu-text” tag within that A tag and that had different color property.
You are welcome! Let us know if you have any other questions :)Best regards,
YigitFebruary 15, 2016 at 11:52 am #583292Tnx!
Topic can be closed!
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘Main menu color’ is closed to new replies.