Friday, February 1, 2013

Re: Add colour and bold hyperlinks in html->link()

$this->Html->link('Text of link', ..., array('class' => 'YourLinkClass');

In your css (because this is a css issue) ...

a.YourLinkClass {
font-weight: bold;
color: ...
}


On Fri, Feb 1, 2013 at 4:50 AM, Sam <lightaiyee@gmail.com> wrote:
> Hi CakePHP experts,
>
> I would like to add color and bold to the hyperlink set in html-link(). This
> is how my code looks
>
> $this->Html->('Text of link','/website');
>
> I tried to bold the text $this->Html->('<b>Text of link</b>','/website') but
> it does not work. May I know if adding color and bold can be done?
>
> Thank you. I am using Cakephp ver2.2
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: