Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: change text color

change text color 26 May 2011 14:33 #193

  • bougies
  • bougies's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
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!

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

Re: change text color 26 May 2011 14:46 #194

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21354
  • Karma: 427
  • Thank you received: 2699
you can use the class 'active' to identify the current elements like you did for ':hover'

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

Joomlack Webmaster and Developer

Re: change text color 26 May 2011 17:53 #195

  • bougies
  • bougies's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
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 {

}

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

Re: change text color 27 May 2011 09:29 #198

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21354
  • Karma: 427
  • Thank you received: 2699
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;
}

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

Joomlack Webmaster and Developer
  • Page:
  • 1
Time to create page: 0.207 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 580 guests and no members online