Re: Can't change color of rows in table?
Call me dense, but how would I do that? As mentioned in an earlier reply, you could let the HTML helper do it for you: http://book.cakephp.org/view/1447/tableCells HTH, Paul. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
White on white, ROFL :P On Oct 23, 2:28 pm, Arno.E arno.esterhui...@gmail.com wrote: Actually, it is working. You're setting the background color to *white*. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
It does... sort of. Now it's all just gray. Here is my view: http://bin.cakephp.org/view/1436687402 On Sun, Oct 23, 2011 at 9:28 AM, Arno.E arno.esterhui...@gmail.com wrote: Actually, it is working. You're setting the background color to *white*. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Shouldn't the altrow class be applied to alternating rows rather than the table? Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:40, Yves S. Garret wrote: It does... sort of. Now it's all just gray. Here is my view: http://bin.cakephp.org/view/1436687402 On Sun, Oct 23, 2011 at 9:28 AM, Arno.E arno.esterhui...@gmail.com wrote: Actually, it is working. You're setting the background color to white. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Call me dense, but how would I do that? The main loop goes through the different rows and assigns something to them. Do something like this in a view? ?php foreach ($provider as $i = $prov): ? tr class=?php echo ($i % 2 == 0) ? 'altrow' : '' ? td ?php echo $prov['Provider']['last_name']; ? /td On Mon, Oct 24, 2011 at 9:45 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Shouldn't the altrow class be applied to alternating rows rather than the table? Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:40, Yves S. Garret wrote: It does... sort of. Now it's all just gray. Here is my view: http://bin.cakephp.org/view/1436687402 On Sun, Oct 23, 2011 at 9:28 AM, Arno.E arno.esterhui...@gmail.comwrote: Actually, it is working. You're setting the background color to *white*. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
I just modified the bin paste... Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:45, Jeremy Burns | Class Outfit wrote: Shouldn't the altrow class be applied to alternating rows rather than the table? Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:40, Yves S. Garret wrote: It does... sort of. Now it's all just gray. Here is my view: http://bin.cakephp.org/view/1436687402 On Sun, Oct 23, 2011 at 9:28 AM, Arno.E arno.esterhui...@gmail.com wrote: Actually, it is working. You're setting the background color to white. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Jinx :-) On Mon, Oct 24, 2011 at 9:49 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I just modified the bin paste... Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:45, Jeremy Burns | Class Outfit wrote: Shouldn't the altrow class be applied to alternating rows rather than the table? Jeremy Burns Class Outfit http://www.classoutfit.com On 24 Oct 2011, at 14:40, Yves S. Garret wrote: It does... sort of. Now it's all just gray. Here is my view: http://bin.cakephp.org/view/1436687402 On Sun, Oct 23, 2011 at 9:28 AM, Arno.E arno.esterhui...@gmail.comwrote: Actually, it is working. You're setting the background color to *white*. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Actually, it is working. You're setting the background color to *white*. If you want to change the background color to something like #f5f5f5 in line 170, it should show up. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
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 yoursurrogate...@gmail.com wrote: Yes. Here is a small snippet: /td -- td /td td /td td /td /tr tr bgcolor=#AA td Kathy /td td Peanuts /td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#00 td Robert /td td Jonhson /td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#AA td John /td td Smith /td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#00 td Bleh /td On Fri, Oct 21, 2011 at 2:10 AM, Andras Kende and...@kende.com 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 arno.esterhui...@gmail.comwrote: 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 cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
style type=text/css td.datacellone { background-color: #CC; color: black; } td.datacelltwo { background-color: #CC; color: black; } /style table trtd class=datacelloneOne/tdtd class=datacelloneFish/td/tr trtd class=datacelltwoTwo/tdtd class=datacelltwoFish/td/tr trtd class=datacelloneRed/tdtd class=datacelloneFish/td/tr trtd class=datacelltwoBlue/tdtd class=datacelltwoFish/td/tr /table OneFishTwoFishRedFishBlueFish -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
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 arno.esterhui...@gmail.com 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 site http://ask.cakephp.org and help others with their CakePHP related questions. 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 -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Sorry, also in your CSS on line 166: it should be tr.altrow, not table.altrow. Try that and see if it works? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
No go. CSS file: http://bin.cakephp.org/view/1070883347 On Fri, Oct 21, 2011 at 4:03 AM, Arno.E arno.esterhui...@gmail.com wrote: Sorry, also in your CSS on line 166: it should be tr.altrow, not table.altrow. Try that and see if it works? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Yes. Here is a small snippet: /td -- td /td td /td td /td /tr tr bgcolor=#AA td Kathy/td td Peanuts/td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#00 td Robert/td td Jonhson/td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#AA td John/td td Smith/td !-- td /td -- td /td td /td td /td /tr tr bgcolor=#00 td Bleh/td On Fri, Oct 21, 2011 at 2:10 AM, Andras Kende and...@kende.com 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 arno.esterhui...@gmail.comwrote: 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 site http://ask.cakephp.org and help others with their CakePHP related questions. 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 -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Can't change color of rows in table?
I'm using IE 8 as the platform that our userbase has. This is my default.ctp: http://bin.cakephp.org/view/1448707874 This is my CSS: http://bin.cakephp.org/view/361163608 The issue that I'm encountering is that I'm trying to display a table with alternating colors for the rows... and it doesn't work. I'll post more code if needed, but figured that this would set this up for all tables (this is just one app, with one large table): 1. table tr td { 2. background: #f0f0f0; 3. padding: 6px; 4. text-align: left; 5. vertical-align: top; 6. border-bottom:1px solid #ddd; 7. } 8. table tr:nth-child(2n) td { 9. background: #f5f5f5; 10. } 11. table .altrow td { 12. background: #f5f5f5; 13. } -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Hey, Yves Unfortunately IE8 doesn't support the CSS selectors you're using (:nth-child). Your table html code will have to use .altrow classes on the rows to support alternate row colours. You didn't post any of the code that generates tables, so I can't review that for you, but hope this helps. Cheers Arno -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
Thanks for your response. I tried altrow, with little success: Here is my CSS file: http://bin.cakephp.org/view/2003670694 Here is my default.ctp: http://bin.cakephp.org/view/1448707874 Here is my controller: http://bin.cakephp.org/view/75478360 Here is my view: http://bin.cakephp.org/view/1202214697 On Thu, Oct 20, 2011 at 12:32 PM, Arno.E arno.esterhui...@gmail.com wrote: Hey, Yves Unfortunately IE8 doesn't support the CSS selectors you're using (:nth-child). Your table html code will have to use .altrow classes on the rows to support alternate row colours. You didn't post any of the code that generates tables, so I can't review that for you, but hope this helps. Cheers Arno -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Can't change color of rows in table?
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 site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Can't change color of rows in table?
I just tried that, it didn't work. Same table row colors. On Thu, Oct 20, 2011 at 1:48 PM, Arno.E arno.esterhui...@gmail.com 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 site http://ask.cakephp.org and help others with their CakePHP related questions. 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 -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php