I have a menu similar to the following:
---> Sport
---> Football
---> Players
---> Rules
---> Cricket
---> Baseball
---> Showbiz
And i just want to change the color of just the top level menu items 'Sport' and 'Showbiz'. At the moment I am using:
.k-menu .k-item .k-link{
color:#FFFFFF !important;
}
But this changes the color of the top level AND 'Football' because it has sub menu's. I don't want 'Football' to change though.
Use the following definition:
Where
#menuis theidof the top menu. With this, we limit the scope to thelithat are hanging directly from the top list and the to the first links of it.See an example here: http://jsfiddle.net/OnaBai/zxpsk8zm/