but actually the problem is that i have many links as isaid before like Today Tomorrow week month year and i want that if i click on week then week remains undecorated and the rest as underlined. But if i add a new class in css say a.nodec{text-decoration:none} and then to my link whick is like echo $html->link ('Today', array > ('controller'=>'entities', 'action'=>'popular'),array > ('class'=>'greenFont')); How should i integrate nodec with this so that only on clicking the link becomes nondecorated but remains as underlined if not clicked..???
are you getting the point or should i elaborate it more?? On Mar 23, 11:17 am, brian <bally.z...@gmail.com> wrote: > It should work. But, by 'active', are you referring to the current > page? With CSS, 'active' refers to a link as it's being clicked. If > you want to style the 'current' link, you will need to add a class. > > On Mon, Mar 23, 2009 at 1:31 AM, aman batra <batra_aman2...@yahoo.com> wrote: > > > actually that :active is not serving the work for me.. and yes i keep > > the thinkgs in mind brian.. thanx for the valueable advice.. > > > On Mar 23, 10:08 am, brian <bally.z...@gmail.com> wrote: > >> On Mon, Mar 23, 2009 at 12:34 AM,amanbatra <batra_aman2...@yahoo.com> > >> wrote: > > >> > how can i change the decoration of an active link?? i have the lin ks > >> > underlined by default and i want to make the decoration to none when a > >> > particular link is clicked and rest of the links to be as before > >> > underlined.. how can i do that??? > > >> > will in css a.class:active{text-decoration:none} work??? > > >> Wouldn't it have been easier to try that? This isn't even related to > >> Cake, nor even PHP. I'm not ranting; I actually find this a bit funny. > > >> > initially i have a colourfont class applied on to the link. how to > >> > apply two classes on active link and just a colour font class on the > >> > inactive link..?? > >> > my link as of now is something like.. > > >> > echo $html->link('Today', > >> > > >> > array > >> > ('controller'=>'entities', 'action'=>'popular'),array > >> > ('class'=>'greenFont')); > > >> > echo $html->link('Tommorow', > >> > > >> > array > >> > ('controller'=>'entities', 'action'=>'popular'),array > >> > ('class'=>'greenFont')); > > >> a.class:active should suffice. > > >> A bit of advice, though: don't name your CSS classes in terms of the > >> style. What's green today may well be red tomorrow. A better classname > >> might be 'Popular', for instance. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---