Jump to content

Help with menu CSS colors urgent


smile

Recommended Posts

Hi, I use Joomla CMS and need help with template.

 

 

 

I need help with my menu CSS colors.

 

Here is picture What it looks like and what I need it to be:

menucss.jpg

 

My Problem:

 

When I select second level menu item the first level menu background color is lost.

 

Here is my CSS code:

 

/* MAIN NAVIGATION
--------------------------------------------------------- */
#ja-mainnav {
float: left;
width: 100%;
font-size: 1em;
line-height: normal;
background: #646E7B;
border-bottom: 5px solid #4F96F8;
}

#ja-subnavwrap {
clear: both;
float: left;
width: 100%;
background: #4F96F8;
border-bottom: 5px solid #4F96F8;
}

#ja-subnav {
padding: 0 10px;
}

/* Default Joomla! Menu */


a.mainlevel {
padding: 3px;
border-bottom: 1px solid #C6CED9;
display: block;
color: #646E7B;
text-decoration: none;

}

a.mainlevel:hover {
color: #4F89D2;
background: #DFE5EC;
text-decoration: none;}
a.mainlevel:active {
color: #4F89D2;
background: #DFE5EC;
text-decoration: none;
background:#4F89D2 none repeat scroll 0%;
}
a.mainlevel:focus {
color: #4F89D2;
background: #DFE5EC;
text-decoration: none;

}

a.mainlevel#active_menu {
background: #4F89D2;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;	
}

a.sublevel {
padding: 2px 4px 2px 12px;
display: block;
background: url(../images/bullet-list2.gif) no-repeat 2% 50%;
text-decoration: none;
color: #646E7B;
}

/* 2 lygio meniu - uzvedus pele
--------------------------------------------------------- */
a.sublevel:hover,
a.sublevel:active,
a.sublevel:focus {
text-decoration: none;
background: url(../images/bullet-list3.gif) no-repeat 2% 50%;
color: #4F89D2;
font-weight: bold;
}

/* 2 lygio meniu - paspaudus
--------------------------------------------------------- */
#active_menu {
background: url(../images/bullet-list3.gif) no-repeat 2% 50%;
color: #4F89D2;
font-weight: bold;

}

#ja-rightcol a.mainlevel {
border: none;
}
/*End: Default Joomla! Menu  */

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.