• Hi, I am using this code to modify the main and sub menu text and background color and so far so goed, but I do not get the text color of the sub menu to be white as a want.

    can someone give me a hint about what is wrong or i should add to the code?

    Thanks in advance

    #access  ul li.current_page_item,
     #access ul li.current-menu-item {
    	background: #444;
    	box-shadow: none;
    
    }
    #access ul li.current_page_item > a,
    #access ul li.current-menu-item > a{
    	color: #fff;
    }
    
    #access ul ul li { /* level 2 */
    	position: relative;
    	display: block;
    	float: left;
    	clear:both;
    	width: 100%; /* submenu width fix */
    	min-width: 150px;
    	margin: 0;
    	border-bottom: 1px solid rgba(220,220,220,0.3);
    	background: #444;
    	box-shadow: none;
    	border-radius: 0;
    
    #access ul ul a, #access ul ul ul a {
    
        display: block;
        float: none;
        width: 100%;
        padding-top: 0.75em;
        padding-bottom: 0.75em;
        color: #ffffff;
    : ;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to a page on your site where we can see this. Thanks.

    There’s a couple of errors with your CSS that I can see. Try using this:

    #access ul li.current_page_item,
     #access ul li.current-menu-item {
    	background: #444;
    	box-shadow: none;
    }
    
    #access ul li.current_page_item > a,
    #access ul li.current-menu-item > a {
    	color: #fff;
    }
    
    #access ul ul li { /* level 2 */
    	position: relative;
    	display: block;
    	float: left;
    	clear: both;
    	width: 100%; /* submenu width fix */
    	min-width: 150px;
    	margin: 0;
    	border-bottom: 1px solid rgba(220,220,220,0.3);
    	background: #444;
    	box-shadow: none;
    	border-radius: 0;
    }
    
    #access ul ul a,
    #access ul ul ul a {
        display: block;
        float: none;
        width: 100%;
        padding-top: 0.75em;
        padding-bottom: 0.75em;
        color: #ffffff;
    }

    Let me know if it’s corrected your problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS Theme customization’ is closed to new replies.