Yves, do not place css direct into your html, use ids and classes and
control the styling from a css file.  That way when you decide to
reuse the code for another site with a different colour scheme you
chance colours in the css file rather than numerous view templates.

All the help people have tried to give you assumed you were doing
this, but from your snippet you have not been adding classes.  If
using Html->tableCells() there is a parameter to create the altrow
classes on your behalf:
http://book.cakephp.org/view/1447/tableCells

HTH, Paul.


On Oct 21, 5:13 pm, "Yves S. Garret" <[email protected]>
wrote:
> Yes.  Here is a small snippet:
>
>                     </td> -->
>         <td>
>         </td>
>         <td>
>         </td>
>         <td>
>         </td>
>     </tr>
>         <tr bgcolor="#AAAAAA">
>         <td>
>             Kathy        </td>
>         <td>
>             Peanuts        </td>
>         <!-- <td>
>                     </td> -->
>         <td>
>         </td>
>         <td>
>         </td>
>         <td>
>         </td>
>     </tr>
>         <tr bgcolor="#FFFF00">
>         <td>
>             Robert        </td>
>         <td>
>             Jonhson        </td>
>         <!-- <td>
>                     </td> -->
>         <td>
>         </td>
>         <td>
>         </td>
>         <td>
>         </td>
>     </tr>
>         <tr bgcolor="#AAAAAA">
>         <td>
>             John        </td>
>         <td>
>             Smith        </td>
>         <!-- <td>
>                     </td> -->
>         <td>
>         </td>
>         <td>
>         </td>
>         <td>
>         </td>
>     </tr>
>         <tr bgcolor="#FFFF00">
>         <td>
>             Bleh        </td>
>
>
>
>
>
>
>
> On Fri, Oct 21, 2011 at 2:10 AM, Andras Kende <[email protected]> wrote:
>
> > On the rendered page view source do you see the tr class alternating ?
> > Of its there then its a css is not being applied correctly
> > would just do the whole thing with jquery and css..
>
> > Andras
>
> > On Oct 20, 2011, at 2:50 PM, Yves S. Garret wrote:
>
> > I just tried that, it didn't work.
>
> > Same table row colors.
>
> > On Thu, Oct 20, 2011 at 1:48 PM, Arno.E <[email protected]>wrote:
>
> >> Hey, Yves
>
> >> I've edited the pastebin of your view, have a look at:
> >>http://bin.cakephp.org/view/1202214697
>
> >> Cheers
> >> Arno
>
> >> --
> >> Our newest site for the community: CakePHP Video Tutorials
> >>http://tv.cakephp.org
> >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> >> others with their CakePHP related questions.
>
> >> To unsubscribe from this group, send email to
> >> [email protected] For more options, visit this group
> >> athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> >  --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to