1 reply [Last post]
n.hahn
n.hahn's picture
Offline
newbie
Last seen: 8 years 8 weeks ago
Timezone: GMT+2
Joined: 2013-08-01
Posts: 1
Points: 2

Hey, I'm using the NewsPro template for Drupal 7.x

I need the taxonomy categories(it's like a main menu) to be each one I click specified with his own color. In the CSS it is possible to change the color of all of them and of the one that is clicked and hoved, but not for ever section it self.

uQrle.png

#nav li.active{border-color:#339933;}
.green #nav li.active{border-color:#003300;}
.red #nav li.active{border-color:#c50c0c;}
#nav li.active a{
	color:#0184e0;
	background:#f2f2f2 !important;
}
.green #nav li.active a{color:#000000;}
.red #nav li.active a{color:#c50c0c;}
#nav li a{
	display:block;
	text-transform:uppercase;
	color:#787878;
	background:#f2f2f2;
	margin:0 1px 0 -1px;
}
#nav li a span{
	display:block;
	text-align:center;
	border:solid #fff;
	border-width:0 0 1px 1px;
	padding:17px 0 5px;
}
#nav li a:hover,
#nav li:hover a,
#nav li.hover a{
	background:#e6e6e6;
	text-decoration:none;

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 weeks 16 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi n.hahn, One way you could

Hi n.hahn,
One way you could do it is with nth-child