change text color

change text color was created by bougies

Posted 12 years 10 months ago #193
i am trying to change the color of the menu links when passive..
and the color of the links when active..
i allready managed to change the color when hovering to white

Can anybody point me in the right direction


i am working in maximenuH_CK.php\

site: www.trophydesign.nl

the menu is right in the top

thanks!
by bougies

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: change text color

Posted 12 years 10 months ago #194
you can use the class 'active' to identify the current elements like you did for ':hover'

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by bougies on topic Re: change text color

Posted 12 years 10 months ago #195
This are the lines .. can someone tell me what i must change if i want to change the color of the menu links when passive..
and the color of the links when active..
Sorry I am just starting to learn php so not mutch php knowledge .

Thanks.

** active items
**/

/* current item title and description */
div#<?php echo $id; ?> ul.maximenuCK li.current>a span {
color : #ccc;
}

/* current item title when mouseover */
div#<?php echo $id; ?> ul.maximenuCK li.current>a:hover span.titreCK {

}

/* current item description when mouseover */
div#<?php echo $id; ?> ul.maximenuCK li.current>a:hover span.descCK {

}

/* active parent title */
div#<?php echo $id; ?> ul.maximenuCK li.active>a span.titreCK {
color : #ccc;
}

/* active parent description */
div#<?php echo $id; ?> ul.maximenuCK li.active>a span.descCK {

}
by bougies

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: change text color

Posted 12 years 10 months ago #198
it is not php code but CSS (in a php file)
/* normal color */
div#<?php echo $id; ?> ul.maximenuCK li a span.titreCK {
color : #ccc;
}

/* active color */
div#<?php echo $id; ?> ul.maximenuCK li.active a span.titreCK {
color : #ccc;
}

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.671 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1052 guests and no members online