Thursday, December 18, 2014

Re: different css styles for checkboxes

> If your class="z" is to target the last item you might be better using
>
> :last-child selector in CSS

No, that was an example. I have 3 different type of groups and I want
to present them with different styles.

rrd


> http://www.w3schools.com/cssref/sel_last-child.asp
>
> On 17 Dec 2014, at 18:30, Radharadhya Dasa <rrd@1108.cc> wrote:
>
> Hi,
>
> Is it possible somehow to have different css classes for members of a set of
> checkboxes?
>
> echo $this->Form->input('groups._ids',
> ['options' => $fGroups,
> 'type' => 'select',
> 'multiple' => 'checkbox',
> 'value' => $values
> ]);
>
> For example I want the first and second checkbox to have css class "x" and
> third to have "z".
>
>
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>
>
> ....................................
> Mike Karthäuser
> Director, Brightstorm Ltd.
>
> 1, Brewery Court
> North Street
> Bristol
> BS3 1JS
>
> mikek@brightstorm.co.uk
> www.brightstorm.co.uk
> +44(0) 7939252144
> ....................................
>
> --
> 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 a topic in the
> Google Groups "CakePHP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cake-php/GMpJK1OQCdo/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
> For more options, visit https://groups.google.com/d/optout.

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: