change text color
13 years 6 months ago #193
by bougies
change text color was created by bougies
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!
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!
Please Log in or Create an account to join the conversation.
13 years 6 months ago #194
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: change text color
you can use the class 'active' to identify the current elements like you did for ':hover'
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
13 years 6 months ago #195
by bougies
Replied by bougies on topic Re: change text color
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 {
}
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 {
}
Please Log in or Create an account to join the conversation.
13 years 6 months ago #198
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: change text color
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;
}
/* 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
Please Log in or Create an account to join the conversation.
Time to create page: 0.221 seconds